Word文档不提供打开/保存,但在IE11(或Edge)窗口中显示为垃圾 [英] Word document does not offer Open / Save but shows as garbage in IE11 (or Edge) window

查看:221
本文介绍了Word文档不提供打开/保存,但在IE11(或Edge)窗口中显示为垃圾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个网站,该网站可以下载/查看文档文件。

一个按钮重定向到一个URL - http://< server> /< folder> /<file>.doc



在Firefox中,这会产生一个对话框,提供在Word中打开文件或在本地保存文件的选项,这是理想的行为。$


在IE11(在Windows 7或8上)和Edge(在Windows 10上)中,文件内容显示为文本。




但是,如果我在地址栏中键入本地文件名,我会得到打开/保存/另存为对话框,我也希望如此在这种情况下,


我如何(或网站开发者)说服de IE11和Edge为来自网站的文件提供此对话框。



注意:此问题同样适用于.doc,.docx和.ppt文件。



感谢您的帮助。





比尔曼维尔。 Excel MVP,牛津,英格兰。 www.manville.org.uk

解决方案

您好,


f12>网络标签,点击"开始"用于记录浏览器请求和响应的按钮。返回您的网页(不关闭开发工具) 并单击下载链接/按钮。


检查下载链接的响应标题....我希望它是text / plain,这是不正确的。


打开IIS控制台并选择mime-types图标,并调整其对doc和docx文件的mime类型的设置。


MSIE浏览器使用ActiveX控件打开office文档。 (确保AcitveX过滤没有打开,并且工具>管理插件>显示所有插件,它们已启用),Edge将提示从
下载文件到用户的边缘下载缓存,在那里可以打开它使用本机Reader Store应用程序。


您可以将企业模式与Win10,7和8一起使用,以确保仅使用IE11打开具有旧版和ActiveX依赖项的Intranet站点的导航。 / p>

问候。


I am working with a website which makes document files available to download/view.
A button redirects to a URL - http://<server>/<folder>/<file>.doc

In Firefox this results in a dialog offering me the option to open the file in Word or to save it locally, which is ideal behaviour.

In IE11 (on Windows 7 or 8) and Edge (on Windows 10) the file content is displayed as text.

However, If I type a local filename into the address bar I get the Open / Save / Save as dialog that I would also expect in this circumstance,

How can I (or the website developer) persuade IE11 and Edge to give this dialog for a file coming from the website.

Note: The issue applies equally to .doc, .docx and .ppt files.

Thanks for any help.


Bill Manville. Excel MVP, Oxford, England. www.manville.org.uk

解决方案

Hi,

f12>Networking tab, click the "Start" button to record your browser requests and responses. Return to your web page(without closing the dev tool) and click the download link/button.

examine the response header from your download link.... I expect that it is text/plain, which is incorrect.

open your IIS console and select the mime-types icon, and adjust its settings for mime-types for doc and docx files.

MSIE browsers use ActiveX controls to open office documents. (ensure that AcitveX filtering is not turn on, and that Tools>Manage Addons>Show all addons, they are enabled), Edge will prompt to download the file to the users' Edge download cache from where it can be opened with the native Reader Store app.

You can use Enterprise mode with Win10, 7, and 8 to ensure that navigation to intranet sites that have legacy and ActiveX dependencies are only opened with IE11.

Regards.


这篇关于Word文档不提供打开/保存,但在IE11(或Edge)窗口中显示为垃圾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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