|
Posted by JaxDawg on 01/25/08 16:37
I have a spreadsheet saved as an XML spreadsheet so I can manipulate
it easier (and don't need COM). When I'm done, I want to display to
the user. Currently, I'm using simple JavaScript in my PHP file:
echo '<script type="text/javascript"> window.open("'.$file_nm.'")</
script>';
Since the file is XML, which defaults to the browser to open - the
above code will display the XML as raw XML in a new browser window.
How to I tell it to open with Excel? or even better, open with any
compatible spreadsheet (OpenOffice, etc).
I've played around with ContentType, but perhaps am just not using the
correct format. Seems like this should be pretty simple - but I'm
struggling.
Thanks in advance.
[Back to original message]
|