We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.pagesetup.html

Best regards,