Melursus
Melursus

Reputation: 10618

Write a Word 2007 document in OpenXML

My problem is in two parts:

  1. How can I, in Word 2007, put an id on a section so I can easy access this section from my code? For example, if I have Name : Here I want to set the name from my C# code.

  2. How can I, from my C# code, fill this section id ?

Upvotes: 2

Views: 577

Answers (1)

Todd Main
Todd Main

Reputation: 29155

The best way is to use Content Controls in Word (and the Content Control Toolkit). There are tons of examples out there, like:

Upvotes: 2

Related Questions