问题
I have developed an application in C#. I want to enable sers define their own print template for printing certificates. Currently it accepts html and replaces keywords with values. However users are not familiar with html design, converters do not give well designed result, and hand writing html code for getting the same design is time consuming.
I want to enable my application to open the docx file, replace keywords with values and print.
Any idea will be helpful.
回答1:
Please check out Automated Search and Replace in Word 2007 documents with C#
Also you can look at Microsoft Word Templates?
回答2:
The MSDN site has info about the Word Object Model.
来源:https://stackoverflow.com/questions/14140754/manipulating-and-printing-docx-documents-in-c-sharp