spreadsheetSetPrintOrientation

Sets the print orientation of a sheet to landscape or portrait.

spreadsheetSetPrintOrientation(spreadsheet, orientation [, sheetName]) → returns void

Argument Reference

spreadsheet any
Required

The spreadsheet object.

orientation string
Required

The print orientation.
Values:
  • landscape
  • portrait

sheetName string

Sheet to apply to. Defaults to the active sheet.

Compatibility

RustCFML:

Not supported on wasm32. Does not support sheetName; always applies to the active sheet. Any other orientation value resets to the default. Member form: setPrintOrientation(orientation).

Examples
Sample code invoking the spreadsheetSetPrintOrientation function

Set the active sheet to print landscape.

wb = Spreadsheet("xlsx");
spreadsheetSetPrintOrientation(wb, "landscape");

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub