Usage APISpreadsheet APIEnumerationPageOrientationOn this pagePageOrientation The page orientation type. Type Enumeration Values "xlLandscape" "xlPortrait" Example This example sets the page orientation to portrait. worksheet.SetPageOrientation("xlPortrait");