J
JaxDawg
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 to
display the file when complete:
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 (text) in a new browser
window - rather than opening with excel.
In the XML is:
<?mso-application progid="Excel.Sheet"?>
So, if the XML is saved locally - then opened, it will default to
Excel to open.
Is there anyway for the script to indicate that excel should be used
to open, rather than the (default) for XML - which is the browser?
Thanks in advance.
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 to
display the file when complete:
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 (text) in a new browser
window - rather than opening with excel.
In the XML is:
<?mso-application progid="Excel.Sheet"?>
So, if the XML is saved locally - then opened, it will default to
Excel to open.
Is there anyway for the script to indicate that excel should be used
to open, rather than the (default) for XML - which is the browser?
Thanks in advance.