What I would like to do is to be able to write some hidden marks in the document, so that when the user fills in some information, then I can process each part of the document according to the marks or sections that surrounded it. I’m using .NET, any ideas? Thanks
Share
Take a look at SdtElements tag, OpenXml Sdk and Word 2007 Content Control Toolkit
The essence is:
The steps below apply if your app can output an XML you would bind to your document:
Once you have your template prepared, depending on your actual task at hand you can do many things with these content tags, including:
In your code you can find the content tags by using LINQ queries over OpenXmlSdk objects like so: