将 Word 文档转换为 XML 并返回 ASP.Net
我需要在对 Word 文档执行编辑后将其转换为 XML 并返回。
我的服务器上没有安装 Microsoft Office,并且我希望我的用户通过 Web 浏览器编辑他们的文档。
我正在使用 C# 和 ASP.Net
谢谢
I need to convert Word Document to XML and back once editing has been performed on it.
I don't have Microsoft Office Installed at my server, and I want my users to edit their documents via Web Browser.
I am using C# and ASP.Net
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信最新版本的 Microsoft Word(和 Excel)已经以 XML 格式保存文件,因此具有 .docx 和 (.xlsx) 扩展名。 希望这能满足您的需求。
或者,您可以查看它们是否是将旧的 .doc 格式文件转换为 .docx 的工具,从而为您提供基于 XML 的 Word 文件。
I believe the latest version of Microsoft Word (and Excel) already save files in XML format, hence the .docx and (.xlsx) extensions. Hope that suffices your need.
Alternatively, you could see if they are tools to convert the old .doc format files to .docx which should, as a result, provide you with a XML based word file.
因此,您在这里有几个选择:
1) 使用 OfficeWriter www.softartisans.com/" rel="nofollow noreferrer">SoftArtisans。 这允许您破解二进制 Office 文件格式(例如 .doc 和 .xls) 注意:我有偏见,因为我的公司生产此产品,但我认为它很棒。
2) 如果您可以使用最新的文件格式(.docx 和 .xlsx),您可以使用微软发布的 SDK,它将为您完成所有的 uzipping 和 rezipping 操作。 (称为 opem XML SDK)
So you have a couple of options here:
1) Use OfficeWriter from SoftArtisans. This allows you to crack open the binary office file format(e.g. .doc and .xls) note:I am biased because my company makes this product but I think it's awesome.
2) If you can use the newest file format (.docx and .xlsx) you can use the SDK that microsoft has released that will do all of that uzipping rezipping nonsense for you. (called the opem XML SDK)