I’ve got a document that’s being created via a mail merge. I’m taking this document and drawing shapes on the odd-numbered pages. My current approach involves looping through the child nodes that are either Inline or Paragraph-related nodes. I use LayoutCollector to determine if that node is on an odd or even-numbered page. On odd pages, I’m using DocumentBuilder and calling “MoveTo”, passing in the appropriate node.
- Please create a simple application (for example a Console Application Project) that helps us reproduce the same problem on our end and attach it here for testing.
- Please supply us with the input document that is causing the issue
- Please supply us with the output document showing the undesired behavior
- Please supply us with the expected document showing the desired behavior (You can create this document using Microsoft Word).
This sounds like it’s a bug, then. I am setting a shape to be positioned relative to the page, but DocumentBuilder doesn’t place it relative to a page if the node I move to is within a table.
Unfortunately, I won’t be able to use this temporary solution. I need to have control over vertical and horizontal placement. In the example document you had sent, there is a page where the vertical placement is inconsistent.