Editing Microsoft Word Documents Programmatically

后端 未结 6 1272
死守一世寂寞
死守一世寂寞 2020-12-10 06:08

I want to know if this could be done.

I am building a data dictionary for our software system (school project), and I\'m thinking of an automated way to do this. Bas

6条回答
  •  佛祖请我去吃肉
    2020-12-10 06:35

    Definitely possible. A fairly easy way of doing it using Office Automation. See this KB article for a basic sample: How to automate Microsoft Word to create a new document by using Visual C#

    I think the main difference to that sample will be that you'll open your template and do SaveAs instead of creating a new document, but I can't remember exactly.

    However, depending on your exact requirements, there might be better alternatives. For example, it's not recommended to do Office Automation on servers (including on webservers), so if that's needed you might want to look at something else.

提交回复
热议问题