在浏览器(IE)中显示ms office文件(doc,docx,xls,xlsx,ppt,pptx)
我在vs2010中使用asp.net c#建立一个asp.net应用程序。
我的要求是在浏览器中显示ms office文件。
要求是这样的''因为我需要用户只查看文件而不是复制或下载要向他显示的ms office文件。
我尝试将ms office文件转换为html,并使用interop dll文件显示html文件。但它不稳定,微软本身不建议使用以下链接中给出的方法:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2 [ ^ ]
也知道它可以构建为activeX控件;其中我不知道。
请建议我解决方案,使我能够满足我的要求。如果可能,也发布相关链接。谢谢。
iam bulding a asp.net application using asp.net c# in vs2010.
my requirement is to display ms office files in browser.
the requirement is such ''cause i need the user to only view the files and not copy or download the ms office files that are to be shown to him.
i tried converting the ms office files to html and ''en dispaly the html file using interop dll files. but it is not stable and microsoft itself does not recommend this method as given in the following link:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^]
also came to know that it can be build as an activeX control; in which i''ve no idea.
Kindly suggest me solutions that can enable me to achive my requirement. Also post related links if possible. Thank you.
您可以使用在线观众来达到您的目的:
查看以下链接:
http://forums.asp.net/t/1749800.aspx/1 [ ^ ]
http://forums.asp.net/t/1757452.aspx/1 [ ^ ]
http://googlesystem.blogspot.in/2009/09/embeddable-google-document-viewer。 html [ ^ ]
可能对您有帮助的代码:
如何查看的-MS-办公文件,在线式-ASP净4-0-C锋利网-application [ ^ ]
You can use online viewers to serve your purpose:
Check these links:
http://forums.asp.net/t/1749800.aspx/1[^]
http://forums.asp.net/t/1757452.aspx/1[^]
http://googlesystem.blogspot.in/2009/09/embeddable-google-document-viewer.html[^]
Code that might help you:
how-to-view-ms-office-files-online-in-asp-net-4-0-c-sharp-web-application[^]