Set Margin

I am trying to Set Margin for the whole document. If the document has same margin for all the pages it is working fine. But if the document has different margins on different pages it is not working. Could you tell me how to do that.

Hi
Thanks for your request. Margins in MS Word documents are set per section. So if your document contains multiple sections, you should set them for all sections:
https://reference.aspose.com/words/net/aspose.words/pagesetup/
Best regards,