在IE浏览器中显示任何文档 [英] display any document right inside IE browser

查看:98
本文介绍了在IE浏览器中显示任何文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好团队

我们如何在IE浏览器中显示任何文档,而又不分别在其他任何应用程序中启动呢?

Hello Team

How can we display any document right inside IE browser, without launching in any other Application separately?

推荐答案

您无法控制每种类型的文档.例如,如果用户的计算机上有MS Word,然后单击指向Word文档的链接,它将在客户端应用程序中打开.其他类型的应用程序也是如此.浏览器将首先搜索可用的插件或处理程序.如果要保证在浏览器中打开,则需要读取文件并使用Response.Write或Response.WriteBinary.
You can''t control every type of document. For instance, if the user has MS Word on their machine and they click a link to a Word document it will open in the client application. The same for other types of applications. The browser will first search for available plugins or handlers. If you want to guarantee opening in the browser then you would need to read the file and use Response.Write or Response.WriteBinary.


这篇关于在IE浏览器中显示任何文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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