Why won't IE8 won't open “.XLS” file from server?

我只是一个虾纸丫 提交于 2019-12-08 09:12:20

问题


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?


回答1:


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...



来源:https://stackoverflow.com/questions/5723520/why-wont-ie8-wont-open-xls-file-from-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!