简体   繁体   中英

Create a MS Word doc based on a template, changing specific parts of it using user provided values

I need to dynamically generate contracts, and for that our HR depart already has some specific templates which only need a few changes (like names, address, phone number, etc).

For that reason, I'm looking for a library that will help me with the following:

  1. Read a word file (used as a template)

  2. Identify specially marked pieces of text, and replace them.

Do you know of any library(preferably free) that will help achieve that?

PS The .Net Framework I'm using is 4.6.1

我将使用WordprocessingDocument类

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM