Building blocks and quick parts with Aspose words [only special positions work for headers and footers]

I am using Aspose.Words product in order to insert automacally headers and footers that are created as quick parts in a “dotx” file. I implemented a solution similar to the one suggested on one of your forums, here: Add quick part by Aspose - #4 by awais.hafeez

I noticed that only some special positions work for images and text zones (for example the attached screenshot shows a position that works well, meaning that Aspose inserts the image in the right place, if I change some parameter: above of, beside, move with text …etc, the image would be inserted in a completely wrond place)
header_position_that_works.PNG (53.9 KB)

Could you please explain why changing those parameters: above of, beside, move with text … concerning the position of an image or a text zone result in Aspose inserting those elements in a completely wrong place compared to where they are inserted when done in Microsoft Word manually ?

Thank you in advance,

@PeterMike

The shared images shows the layout position of shape/image. The shape position on the page is based on these properties. Could you please share the issue that you are facing while using Aspose.Words along with following resources here for testing?

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.