问题
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