Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion #18

Open
GoogleCodeExporter opened this issue Mar 2, 2016 · 1 comment
Open

Suggestion #18

GoogleCodeExporter opened this issue Mar 2, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 27 Mar 2011 at 6:37

Attachments:

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 5 Apr 2011 at 9:32

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant