为什么IE8不能打开“.XLS”服务器的文件? [英] Why won't IE8 won't open ".XLS" file from server?

查看:112
本文介绍了为什么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?

推荐答案

我不知道您可以取消选中的选项。但是可能有一个可以帮助你的注册表项:

I'm unaware of an option you can uncheck. But there might be a registry key that can help you:

开始于:
HKEY_LOCAL_MACHINE - 更改所有用户的设置
HKEY_CURRENT_USER-更改当前用户的设置

Begin in: HKEY_LOCAL_MACHINE - to change settings for all users HKEY_CURRENT_USER- to change settings for the current user

然后浏览到
软件 - > Microsoft-> Internet Explorer-> Main-> FeatureControl-> Feature_Restrict_File_Download

Then browse to Software->Microsoft->Internet Explorer->Main->FeatureControl->Feature_Restrict_File_Download

然后将值iexplore.exe设置为0.如果它不存在:创建它(DWORD)。

And then set the Value iexplore.exe to 0. If it doesn't exist: Create it (DWORD).

你可能还想看看:
http ://msdn.microsoft.com/en-us/library/dd565669%28VS.85%29.aspx

我希望有帮助......

I hope that helps...

这篇关于为什么IE8不能打开“.XLS”服务器的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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