以Web形式嵌入Word文档 [英] Embedding word document in web form
本文介绍了以Web形式嵌入Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要以ASP.NET格式显示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.
推荐答案
这仅在用户安装了Word的情况下有效.然后,您可以将文件作为二进制流发送,并设置正确的MIME类型,然后Word将打开它.至少,我认为Word支持这一点.如果没有,则根本不可能,除非您找到可以满足您需求的第三方商业组件,或者在服务器上将doc单词转换为HTML并进行流式处理.
This will only work if the user has Word installed. Then you can send the file as a binary stream with the correct MIME type set, and Word will open it. At least, I think Word supports that. If it doesn''t, then it''s not possible at all, unless you can find a third party commercial component that does what you want, or you convert the word doc to HTML on the server and stream that instead.
这篇关于以Web形式嵌入Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文