eddy
eddy

Reputation: 4413

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?

P.S. The .Net Framework I'm using is 4.6.1

Upvotes: 1

Views: 191

Answers (1)

Paulo Morgado
Paulo Morgado

Reputation: 14856

I'd use the WordprocessingDocument Class.

Upvotes: 1

Related Questions