在IE10中强制打开MS文档 [英] Force Open MS Document in IE10

查看:71
本文介绍了在IE10中强制打开MS文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以直接打开Microsoft文档而不提示在asp.net中打开/保存/保存为/取消对话框#?



例如,当用户点击链接(http://.../.../testing.doc)时,testing.doc将直接下载并打开,而不让用户从下载对话框中进行选择IE10中的方框。



有人可以帮忙吗?

Is there any way to direct open the Microsoft document without prompt the open/save/save as/cancel dialog box in asp.net c#?

For example, when user click on the link (http://.../.../testing.doc), the testing.doc will direct download and open without letting the user to choose from download dialog box in IE10.

Can anyone help?

推荐答案

这没有任何意义。什么是开放?使用在客户端系统上注册的默认程序打开?但是这样的程序不会存在于每个系统中。而且,这种默认程序的概念并不存在于所有系统中。因此,您始终需要一个选项来保存或打开文件。请注意,Web标准不支持Office文件格式,因此无法在浏览器中打开。实际上,您无法访问此类浏览器行为,其实现属于浏览器内部实现。你不能做任何事情,更重要的是,你真的不需要它。



-SA
It makes no sense. What is "open"? Open with the default program registered on client system? But such program will not exist in every system. Moreover, the concept of such default program does no exist in all systems. Therefore, you always need an option to save or open the file. Note that Office file formats are not supported by Web standard, so it cannot be opened in browser. Actually, you don''t have access to such browser behavior, and its implementation belongs to browser internal implementation. You cannot do anything about it, and, more importantly, you don''t really need it.

—SA


这篇关于在IE10中强制打开MS文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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