Printing an OOXML document without MS Word installed

妖精的绣舞 提交于 2019-12-01 18:01:52

问题


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.


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/313503/printing-an-ooxml-document-without-ms-word-installed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!