gh0ul / php-excel

Automatically exported from code.google.com/p/php-excel
MIT License
0 stars 0 forks source link

Suggestion #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Change private $header to

"<?xml version=\"1.0\" encoding=\"%s\"?\>\n
<?mso-application progid=\"Excel.Sheet\"?>\n
<Workbook xmlns:o=\"urn:schemas-microsoft-com:office:office\"
 xmlns:x=\"urn:schemas-microsoft-com:office:excel\"
 xmlns=\"urn:schemas-microsoft-com:office:spreadsheet\"
 xmlns:ss=\"urn:schemas-microsoft-com:office:spreadsheet\">";

Change header to
header("Content-Type: application/force-download; charset=" . $this->sEncoding);

header("Content-Disposition: inline; filename=\"" . $filename . ".xml\"");

Now a download dialog will appear, click open, Excel will display the XML 
without any messages.

Original issue reported on code.google.com by marcel.soliman@gmail.com on 27 Mar 2011 at 6:37

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the update. I will check the necessary header composition now with 
version 2. Again, thanks for your help!

Original comment by oliver.s...@gmail.com on 5 Apr 2011 at 9:32