I am creating a document with aspose.words in .net some of the pages are in portrait and some are in landscape mode. However, the pages I am setting to landscape mode are still showing in portrait mode. I am using the code below. I have tried using builder.PageSetup also,
thanks for your reply.
I am able to set the whole document to either portrait or landscape mode, but not individual pages. What I am looking for is most of the document in portrait and just some pages in landscape. So during processing I am invoking ps.Orientation = Orientation.Landscape, adding some html content and then ps.Orientation = Orientation.Portrait. However the whole document seems to have the mode of the last orientation mode set.
Can individual pages be set to a different orientation than the rest of the doc?
Thank you for additional information. Yes you can achieve this, in case of using sections. I mean if each page inside your document will be separate section, you will be able to set page orientation for current section.
Please see the following link to learn more about sections in MS Word:
Thanks for that link, the changing of portrait mode now works, using the code below. However, the headers and footers are no only appearing on the last page i.e last section.
Any idea how to ensure headers/footers appear in all pages,