Hi Aspose Team!
I am trying to implement a document merging functionality and everything works fine till now, but at now I am trying to solve my requirement around page orientation of the imported document.
So, I have a document with mergefields and some of them points to another word documents that should be inserted at their location, this can be achieved easily thanks to your API, I implemented a custom IFieldMergingCallback, and I am calling there the DocumentBuilder’s insertDocument function that places the document there. This is working fine.
Unfortunately the original page orientation of the inserted document has not been kept and it seems there is no direct parameter that I could specify either to the DocumentBuilder object or directly to the insertDocument call (the ImportFormatNode does not influence this behaviour).
I tried to set the orientation through the pagesetup object (side note: despite the fact that my inserted document has landscape orientation, the aspose api reads landscape orientation out from its first section)
I also tried to replace the insertDocument with this code, without success.
I also tried to apply the same as you suggested in this topic.
Have you any suggestion how should I do this?
Thank you in advance,
Best Regards,
Jozsef