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

Free Support Forum - aspose.com

Page Orientation Problem

Hi there,

I’ve an issue with page orientation when I export my report.
I want to set orientation Portrait for many pages and individual page I want to set orientation Landscape. But If I set several pages orientation = Landscape, all of pages will have orientation = Landscape.
Please give me solution for my issue.


Hi Hanh,

Thanks for your inquiry. I am afraid, there is no concept of Page in MS Word documents. Pages are created by Microsoft Word on the fly and unfortunately there is no method you can use to set orientation per page. However, you can specify orientation settings for a whole Section using Section.PageSetup.Orientation property and a Section may contain more than just one Page. If we can help you with anything else, please feel free to ask.

Best regards,