How to modify DocumentBuilder03 to both sides

Home Forums Open-Xml-PowerTools How to modify DocumentBuilder03 to both sides

This topic contains 1 reply, has 2 voices, and was last updated by  Eric White 8 years, 6 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4018

    Eric White
    Keymaster

    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.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.