API usageSpreadsheet APIEnumerationPageOrientationOn this pagePageOrientation The page orientation type. Type Enumeration Values "xlLandscape" "xlPortrait" Example This example sets the page orientation to portrait. CodeResult// How to change an orientation of a page.// Set a page orientation to portrait.worksheet.SetPageOrientation("xlPortrait");