-
-
Couldn't load subscription status.
- Fork 39
setSheetPrintOrientation
Julian Halliwell edited this page Jan 15, 2017
·
3 revisions
Set the print orientation of a sheet to landscape or portrait. Applies to the currently active sheet by default.
setSheetPrintOrientation( workbook, mode[, sheetName[, sheetNumber] ] )
##Required arguments
-
workbookspreadsheet object -
modestring: either "landscape" or "portrait"
##Optional arguments
-
sheetNamestring: the name of the sheet to apply the orientation mode to OR -
sheetNumbernumeric: the number (1 based, not zero-based) of the sheet to apply the orientation mode to
##Example
spreadsheet = New spreadsheet();
workbook = spreadsheet.workbookFromQuery( data );
spreadsheet.createSheet( workbook, "test" );
spreadsheet.setSheetPrintOrientation( workbook, "landscape", "test" );