Manipulating and printing docx documents in C#

∥☆過路亽.° 提交于 2019-12-25 18:25:11

问题


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

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