How can I use openxml to update a MergeField in a template docx file please? RRS feed

  • Question

  • Hi All,

    I got the following issue that need your hand.

    I have a *.docx file as a template, with MergeField "NameField" inside.

    May I ask, how can I use openxml to :

    1. load this template document

    2. locate the MregeField and update it

    3. save the document into another name

    Can anyone give me some advise or any sample code for reference please?

    Many thanks

    Thursday, April 9, 2020 1:26 AM