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

Free Support Forum - aspose.com

Setting page orientation and size

How do you set a diagram or page to use a landscape orientation? Set page size?

Thanks

Hi Charles,

Thanks for your inquiry. You can manually set the width and height of the page. If the width value will be greater than the height value, page orientation will automatically be changed to landscape e.g.

diagram.Pages[0].PageSheet.PageProps.PageHeight.Value = 8;
diagram.Pages[0].PageSheet.PageProps.PageWidth.Value = 11;

Please do let me know in case you have further comments or questions.