在aspx页面中打开MS Word文档并修改文档 [英] Open MS Word document in aspx page and modify document

查看:223
本文介绍了在aspx页面中打开MS Word文档并修改文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我需要协助.在我的项目中,我将MS Word文档上载到数据库.之后,在另一个aspx页面上,我需要打开该Word文档(例如查看器),并且想要像MS Word应用程序一样修改该文档.可能吗?如果是,我正在等待您的帮助.


非常感谢...

Hi, Everyone

I need some help. In my project, I upload a MS word document to database. After that on the another aspx page I need to open that Word document such as viewer and I want to modify the document just like MS word application. Is it possible? If yes I am waiting your helps.


Thanks a lot...

推荐答案

不,这不可能.除非您可以购买支持它的基于Web的插件,否则不可以.即使Word存在并且在浏览器中打开,您也不会被发回本地所做的任何修改.
No, it''s not possible. Not unless you can buy a web based plugin that supports it. Even if Word is present and opens in your browser, you won''t get sent back any modifications made locally.


是的,这很有可能.可以使用不同的方法(有一种名为Custom XML的简单方法,由于i4i请求被MS破坏,MS中断了它的使用.
Yes it is very much possible. There are different approaches available (there was an easy method called Custom XML which discontinued by MS due to the i4i petition on their pattern violated by MS.


您可以始终使用/创建类似单词的方法用ASP/Silverlight编写的RichTextBoxEditor,将其保存为数据库,例如.xps(易于显示但无法编辑(如果我对编辑有误,请纠正我))或.xaml(用于在Rich TextBox,文本中加载和编辑格式也可以保存为.xaml文件),如果您要添加下载功能,也可以将其转换为.doc.即使您无法获得所有Word的功能,也可以获取基本的文本格式,例如页边距,颜色,字体大小等.Dunno的ASP.NET怎么样,但是在Silverlight中,这样的编辑器工作得很好.
You can always use/create word-like RichTextBoxEditor written in ASP/Silverlight, save it in database as for example .xps(easy to display but unable to edit (correct me if i''m wrong about edit)) or .xaml(for load and edit in rich TextBox, text formating also can be saved in .xaml file) and convert it to .doc if u want to add download functionality. Even if you won''t get all Word''s functionality you can get basic text formating like margins, colors, font size etc. Dunno how about ASP.NET but in Silverlight such editors works pretty fine.


这篇关于在aspx页面中打开MS Word文档并修改文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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