API usageSpreadsheet APIEnumerationPageOrientationOn this pagePageOrientationAsk a question The page orientation type. Type Enumeration Values "xlLandscape" "xlPortrait" Example Set the page orientation to portrait. CodeResultPlayground// How do I change the page orientation?// Set a page orientation to portrait.worksheet.SetPageOrientation("xlPortrait");