Writing a Word 2007 Document to OpenXML

My problem has two parts:

  • How can I in Word 2007 put an ID in a section so that I can easily access that section from my code? For example, if I have Name

    : Here I want to set the name from my C # code.

  • How can I, from my C # code, populate this section ID?

+2


a source to share


1 answer


The best way is to use Content Controls in Word (and Content Control Toolkit). There are many examples out there, for example:



+2


a source







All Articles