我如何在ASP.NET中处理Microsoft Office Word [英] How can i handle microsoft office word in asp.net

查看:65
本文介绍了我如何在ASP.NET中处理Microsoft Office Word的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在asp.net中处理Microsoft Office单词?
我想为客户端加载单词,即当单击保存时,自动将单词页面保存在服务器上.
另外,我该如何处理Word中的书签,例如我想获取数据并在Word文件中的特殊位置显示
(我现在可以用Word加上书签,但是我不知道该怎么做.).

how can i handle microsoft office word in asp.net?
i want to load word for the client in ie and when clicke the save ,automaticly save the word page on the server.
Also how can i handle the bookmark in word,for example i want to fetch data and show in the word file in special location
(i now it''s possible with Bookmark in word,but i dont know how can i do it).

推荐答案

请参阅此链接http://msdn.microsoft.com/zh-cn/library/aa701256%28v=office.11​​%29.aspx>将Excel和Word与ASP.NET 2.0网站集成
Refer to this link Integrating Excel and Word with ASP.NET 2.0 Web Sites


最终,您无法做我想做的事情.您不能通过这种方式将Word应用程序的副本推送"到客户端浏览器.如果用户要在客户端计算机上编辑Word文档,则客户端计算机将必须安装Word.

就是说,您可以做的是使用某种基于浏览器的Html或Rtf编辑器,然后使用该编辑器将内容回发到服务器,在其中您可以将内容另存为Word文档在服务器上和/或在响应中将完成的文档返回给客户端.
At the end of the day, you can''t do what I think you are trying to do. You can''t "push" a copy of the Word application to a client browser that way. If the user is going to edit a Word document on the client machine, then the client machine is going to have to have Word installed.

That being said, what you can do is use some sort of a browser based Html or Rtf editor which can then be used to post-back the content to the server where you can save the content as a Word document on your server and/or return the completed document to the client in the Response.


这篇关于我如何在ASP.NET中处理Microsoft Office Word的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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