在未安装 MS Word 的情况下打印 OOXML 文档

发布于 2024-07-10 07:38:04 字数 420 浏览 5 评论 0原文

有没有办法在不安装 MS Word 的情况下打印 OOXML 文档(.docx 文件)?

它通过 MS Word 界面运行得很好,但我需要找到一种方法在未安装 MS Word 的服务器上使用它。 我一直在研究 API,但没有发现任何明显的东西,所以我倾向于相信没有办法。 是这样吗?

编辑:德文的回答基本上就是我所理解的情况。 我应该提到我正在使用 .NET 框架。 所以我想知道是否有一个 .NET 库能够处理用于打印的 docx 文件? 我看到,当将作业添加到 LocalPrintServer(在 System.Printing 命名空间中)上的 DefaultPrinterQueue 时,它可以处理 XPS 文档。 所以也许这就是要走的路。

Is there any way to print an OOXML document (.docx file) without having MS Word installed?

It works nicely via the MS Word interface but I need to find a way to use it on servers where MS Word is not installed. I've been digging through the API and haven't found anything obvious so I'm inclined to believe there isn't a way. Is this the case?

EDIT: Devin's answer is basically what I understood to be the case. I should have mentioned that I'm using the .NET framework. So I wondered if there is perhaps a .NET library which would be able to be handle a docx file for printing? I see when adding a job to the DefaultPrinterQueue on a LocalPrintServer (in the System.Printing namespace) it can handle an XPS document. So perhaps this is the way to go.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

青芜 2024-07-17 07:38:04

我自己也很好奇这个答案,所以我用谷歌搜索了一下。 似乎某些 Novel 和 IBM 产品支持。 这是一个部分答案的链接,似乎说 OpenOffice 中的支持正在开发中。 http://wiki.services.openoffice.org/wiki/Office_Open_XML

I was curious about the answer myself, so I Googled it. Seems there is support in some Novel and IBM products. Here's a link to a partial answer which seems to say support in OpenOffice is in development. http://wiki.services.openoffice.org/wiki/Office_Open_XML

九命猫 2024-07-17 07:38:04

嗯,是的,也不是。 是的,没有 MSWord 也是可以的,但您需要一个能够理解 ooxml 的应用程序或库。 现在有许多其他产品确实支持(正如 Devin 所指出的),但如果您的要求表明您不能在服务器上安装它们中的任何一个,那么......使用库并自己完成。

然后,它将取决于您正在开发的平台...例如,有一个 OOXML4J Java 库。 还有其他适用于其他平台的库,您可以在此处找到。

Well yes and no. Yes it is possible without MSWord but you will need an application or library that understands ooxml. There are many other products now that do support (as pointed out by Devin) but if your requirements says you cannot have any of them on the server then...use a library and do it yourself.

It will then depend on what platform you are developing in...for instance there is a OOXML4J library for Java. And there are other libraries for other platforms as you will find here.

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