Printing Docx without MS Word automation

為{幸葍}努か 提交于 2019-12-10 21:28:10

问题


I'm trying to perform a mail merge between a docx and the database then print the result to a specific printer and that without any Ms Word automation (that is supposed to run server side)

I think that Open XML SDK can help with the merge but as far as Printing is concerned, I'm clueless. Any idea ?


回答1:


Your question looks quite similar to this one:

Printing an OOXML document without MS Word installed

Anyway, I had a similar problem and used Open XML SDK to generate the documents starting from some dotx, but the SDK is not able to render the result on video and/or printer and I had to find a 3rd party library to do that.
I chosed Aspose.Words (but there are many other similar products). I could have use it to create the docs, too, but the performances were much better modifying directly the docx.



来源:https://stackoverflow.com/questions/7359055/printing-docx-without-ms-word-automation

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