You are here: Want XML file to open in spreadsheet, not browser... how to? « PHP Programming Language « IT news, forums, messages
Want XML file to open in spreadsheet, not browser... how to?

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация