How to modify DocumentBuilder03 to both sides
- This topic has 1 reply, 2 voices, and was last updated 9 years, 2 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Open-Xml-PowerTools › How to modify DocumentBuilder03 to both sides
Tagged: document builder, openxml
The correct approach is to first apply DocumentBuilder to your source document, extracting the desired content. DocumentBuilder works at the block-level, not run-level, so you can only extract complete paragraphs and tables from the source document – this is a built-in limitation to DocumentBuilder.
You can do this in memory, of course.
Then insert your extracted content at the correct location in the template document, as appropriate.
I don’t have an examples that show directly how to do what you want to do, but this is all certainly doable – extract the content into a new WmlDocument, and then insert that content using the approach shown in the example that you are looking at.