无法在IE8中生成Excel报告 [英] Cannot generate excel report in IE8

查看:268
本文介绍了无法在IE8中生成Excel报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我真的很惊讶.
我正在尝试生成一个Excel报告.我的代码在firefox中甚至在IE中都可以完美运行,但在IE8中不起作用.
这是我的代码

Hello guys i am really struck in thing.
I am trying to generate an excel report. My code works perfect in firefox and even in IE as well but its not working in IE8.
This is my code for

Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=" + objFileInfo.Name);
Response.Charset = "";
Response.ContentType = "application/vnd.ms-excel";
Response.WriteFile(objFileInfo.FullName);
isCustomErrors = true;                            
Response.Flush();
Response.End();



我也尝试了所有这些内容类型



I have tried all these content types as well

application/x-msexcel
application/excel
application/x-excel
application/vnd.ms-excel
application/msexcel
application/ms-excel



每当我遇到相同的错误



Everytime i gets same error

"Cannot open PivotTable source file 'File Path.xls'Datasource".



代替文件路径,它显示临时文件夹中某处的路径.



In place of file path its shows a path somewhere in temporary folder.

推荐答案

请查看此Microsoft KB ^ ].
Have a look at this Microsoft KB http://support.microsoft.com/default.aspx?scid=kb;en-us;Q211912[^].


这篇关于无法在IE8中生成Excel报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆