将Word文档嵌入到Web表单中
我需要以ASP.NET形式显示word文档。另外,原始的Word格式必须保留。简而言之,我必须以编程方式将 Word 文档嵌入到 Web 表单中。有人可以帮忙吗?
I have a requirement to display word document in ASP.NET form. Also, the original word format has to be retained. In a nutshell i have to embed a word document in a web form programatically. Can someone please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果浏览该网站的所有客户端都将安装 Word 并使用 Internet Explorer,您可以 将其嵌入 ActiveX 对象。如果不满足这些要求,您可能需要将其转换为浏览器能够显示的某种更标准的格式,例如
jpeg
图像。您还可以查看此选项。If all the clients that are browsing the site are going to have Word installed and use Internet Explorer, you could embed it with an ActiveX object. If these requirements are not met you might need to convert it to some more standard format that a browser is capable of displaying such as a
jpeg
image. You may also look at this option.有 html 嵌入标签选项可将 pdf 嵌入到 html 页面中。因此,您可能需要先将 doc 转换为 pdf。
检查这里。 http://blog.flashcolony.com/?p=244
这对我有用。但可能需要更新版本的 Adobe Reader。
There are html embed tag options to embed pdfs into the html page. So probably you need to convert the doc into pdf before.
Check here. http://blog.flashcolony.com/?p=244
This works for me. But may need newer versions of Adobe Reader.