SpreadsheetSetPrintOrientation

Sets the print orientation for a spreadsheet sheet (portrait or landscape).

Method Signature

SpreadsheetSetPrintOrientation(spreadsheetObj=[any], orientation=[any])

Arguments

Argument
Type
Required
Description
Default

spreadsheetObj

ANY

true

The spreadsheet object.

orientation

STRING

true

The print orientation: "portrait" or "landscape".

Examples

Set page orientation:

// Set to landscape
var spreadsheet = SpreadsheetNew();
SpreadsheetSetPrintOrientation( spreadsheet, "landscape" );

Last updated

Was this helpful?