为什么IE8打不开“.XLS”来自服务器的文件?
我的代码应该打开托管在 Web 服务器上的“.xls”(或“.doc”)文件。在 Firefox 中,我收到提示并可以正常打开文件。然而,在 IE8 中我得到黄色信息栏。当我右键单击该栏并选择下载文件时,页面会刷新,但文件无法打开。
我需要取消选中/更改哪些设置才能允许用户下载并打开此文件?
I have code that is supposed to open a ".xls" (or ".doc") file that is hosted on the web server. In Firefox I get the prompt and it opens the file fine. However, in IE8 I get the yellow information bar. When I right-click the bar and select download file the page refreshes but the file doesn't open.
What setting do I need to uncheck/alter to allow the users to download and open this file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道您可以取消选中哪个选项。但可能有一个注册表项可以帮助您:
开始于:
HKEY_LOCAL_MACHINE - 更改所有用户的设置
HKEY_CURRENT_USER-更改当前用户的设置
然后浏览到
Software->Microsoft->Internet Explorer->Main->FeatureControl->Feature_Restrict_File_Download
然后将值 iexplore.exe 设置为 0。如果不存在:创建它 (DWORD)。
您可能还想看看:
http://msdn.microsoft.com/en-us /library/dd565669%28VS.85%29.aspx
我希望有帮助...
I'm unaware of an option you can uncheck. But there might be a registry key that can help you:
Begin in:
HKEY_LOCAL_MACHINE - to change settings for all users
HKEY_CURRENT_USER- to change settings for the current user
Then browse to
Software->Microsoft->Internet Explorer->Main->FeatureControl->Feature_Restrict_File_Download
And then set the Value iexplore.exe to 0. If it doesn't exist: Create it (DWORD).
You might also want to take a look at:
http://msdn.microsoft.com/en-us/library/dd565669%28VS.85%29.aspx
I hope that helps...