使用Asp.net在IFRAME中显示Word文档 [英] Display a Word Document in IFRAME using Asp.net

查看:171
本文介绍了使用Asp.net在IFRAME中显示Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否真的可以像if .pdf文件一样在iframe中打开word文档?

如果是,请帮助我获取代码。我尝试了很多方面但没有浏览器支持这个。这是我经常搜索后得到的,我可能也可能不正确。请帮助我......我的项目中有一个非常迫切的要求。





(我已经尝试过所有类型的代码,这些代码可以在很多网站上找到,博客,谷歌搜索很多方式,但我没有得到)

Is it really possible to open a word document in the iframe like a .pdf file?
If yes please help me to get the code.I tried in many ways but no browser support this.This is what i get after searching a lot,i may or may not be correct.Please help me..I have a very urgent requirement in my project.


(I have tried all types of code which available in many websites,blogs,Googled many ways but i didn''t get)

推荐答案

甚至不保证所有系统和浏览器都支持PDF。例如,我正在系统上写下这些单词,我在浏览器中删除了PDF浏览器。在您的Web应用程序中,您绝不应该保证这样的支持;不用担心:用户可以保护文档或在应用程序的单独过程中打开文档,此时可能会或可能不会提供。这是公平的。



同样的事情是Word文档。目前,文档格式的公共标准可用,但它不是浏览器应支持的Web标准。而且,众所周知的浏览器都不支持office文档。你应该让用户以通常的方式处理文件,或者你应该以某种方式将文档呈现为HTML。如果您想考虑它,请查看我过去的答案:

转换Office-没有互操作的PDF文档 [ ^ ],

需要一个相当独特的WPF文本编辑器控件 [ ^ ],

您好如何使用c#.net 在Windows应用程序中显示word文件[ ^ ],

在不使用Interop.word dll的情况下读取word文件...不想在IIS中安装word。 [ ^ ],

Microsot office Interop [ ^ ],

问题将单词转换为PDF,无需offce或openoffice [ ^ ]。



对不起,并非所有答案都是100%相关的。您可以使用Office interop,Open XML SDK。



-SA
Even the PDF is not guaranteed to be supported on all systems and browser. For example, I''m writing these words on system where I uninstalled in-browser PDF viewer. In your Web application, you should never assume such support is guaranteed; not to worry: the user can safe the document or open it in a separate process by the application which may or may not be available at the moment. This is only fair.

Same thing goes about Word documents. These days, the public standard for document format is available, but it''s not a Web standard which a browser should support. Moreover, none of the well-known browsers do not support office documents. You should either let the use handle the file in a usual way, or you should somehow present the document as HTML. If you want to consider it, please see my past answers:
Convert Office-Documents to PDF without interop[^],
Need a rather unique WPF text editor control[^],
Hi how can i display word file in windows application using c#.net[^],
Read a word file without using Interop.word dll...Do not want to install word in IIS..[^],
Microsot office Interop[^],
Question Convert word to PDF without offce or openoffice[^].

Sorry, not all answers are 100% relevant. You can use either Office interop, Open XML SDK.

—SA


这篇关于使用Asp.net在IFRAME中显示Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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