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
Original issue reported on code.google.com by
marcel.soliman@gmail.com
on 27 Mar 2011 at 6:37Attachments: