将 Word 文档转换为 XML 并返回 ASP.Net

发布于 2024-07-25 17:52:17 字数 145 浏览 2 评论 0原文

我需要在对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏の忆 2024-08-01 17:52:17

我相信最新版本的 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.

颜漓半夏 2024-08-01 17:52:17

因此,您在这里有几个选择:

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文