How do I create word document templates for automated ooxml editing?
Posted on 2015-02-16
My application needs to create a richly formatted Word document for the user. The process starts with two documents:
1.A Word document template.
2. A Word document that serves as a ‘database’ of paragraphs that can be added to the template document based on user input.
Based on user input, the selected paragraphs will be copied into the Word template creating a final Word document.
I think the needs are:
1. Create Word Templates with 'tagged' regions. Say, some sort of tag in the template serves as a target for the first paragraph selected by the user.
2. Code to find the 'tags' in the Word template and replace with formatted text from the 'database' word document.
3. Could anyone suggest how to 'tag' regions of the Word Template that can then be easily found programmatically?