The excel file exported in phpexcel cannot be downloaded using IE8. the "save as" dialog box flashed. how can this problem be solved?

Source: Internet
Author: User
The excel file exported in phpexcel cannot be downloaded using IE8. after saving the file as a dialog box, this post was edited and tested by dzdouzi from 2012-06-2716: 28: 36; ie7 & nbsp; ie9 & nbsp; chrome & nbsp; ff & nbsp; both are normal, that is, ie8 does not work. click the export button to bring up the save dialog box, and then export the excel file in phpexcel, unable to download with IE8, saved as a dialog box flashed through

This post was last edited by dzdouzi at 16:28:36

Ie6 ie7 ie9 chrome ff is normal, that is, ie8 is not good. after you click the export button, the save dialog box pops up and closes instantly. no solution is found after you check it online.
You can see a solution in phpexcel:
If (strpos ($ _ SERVER ['http _ USER_AGENT '], 'msi ')){
Session_cache_limiter ("public ");
}
Session_start ();

The combination of various headers fails, so I have to seek help here and hope it can be solved.

Supplement: I don't know if it is related to window. open ().

There are not many points in total. I hope you can find a solution to this post.
------ Solution --------------------
If there are not many codes, you can paste them out. Let's test it for you.
------ Solution --------------------
Reference:
Ie6 ie7 ie9 chrome ff is normal, that is, ie8 is not good. after you click the export button, the save dialog box pops up and closes instantly. no solution is found after you check it online.
You can see a solution in phpexcel:
If (strpos ($ _ SERVER ['http _ USER_AGENT '], 'msi ')){
Session_cache_limiter ("public ");
}
Session_sta ......
Since it is only related to a specific browser, it is a browser problem.
Try sending a browser-compatible header. Mate Mark is

About
Header ('x-UA-Compatible: IE = 7 ');
Uncertain

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.