[]
Sheets.Print.PrintPageOrientation
Specifies the page orientation used for printing.
example
activeSheet.setArray(0, 0, [['Title 1', 'Title 2'], [1, 2], [3, 4]]);
var printInfo = new GC.Spread.Sheets.Print.PrintInfo();
// Specify the page orientation for printing.
printInfo.orientation(GC.Spread.Sheets.Print.PrintPageOrientation.landscape);
activeSheet.printInfo(printInfo);
spread.print(0);
• landscape = 2
Prints landscape orientation.
• portrait = 1
Prints portrait orientation.