spreadsheetGetPrintOrientation

Returns the print orientation of the sheet: landscape or portrait.

spreadsheetGetPrintOrientation(spreadsheet [, sheetName]) → returns string

This function requires Adobe ColdFusion 2025 and up.  Not supported on Lucee, etc.

Argument Reference

spreadsheet any
Required

The spreadsheet object.

sheetName string

Name of the sheet. Defaults to the active sheet.

Examples
Sample code invoking the spreadsheetGetPrintOrientation function

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

Fork me on GitHub