spreadsheetSetPrintOrientation

Sets the print orientation of the active sheet in a spreadsheet workbook to landscape or portrait. Any other value resets the orientation to the default. The fluent member form is setPrintOrientation(orientation).

spreadsheetSetPrintOrientation(spreadsheetObj, orientation) → returns any

This function requires RustCFML.  Not supported on Lucee, Adobe ColdFusion, etc.

Argument Reference

spreadsheetObj any
Required

The spreadsheet workbook object.

orientation string
Required

The print orientation: landscape or portrait.
Values:
  • landscape
  • portrait

Compatibility

RustCFML:

Not supported on wasm32.

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