PrintOrientation Property
Applies To
fpSpread control
Description
Sets or returns the page orientation used to print the sheet. This property is available at run time only.
Syntax
long CSpreadSheet::GetPrintOrientation( );
void CSpreadSheet::SetPrintOrientation(long value);
[form.]fpSpread.PrintOrientation[ = setting%]
Remarks
The following settings are available:
Setting | Description | Constant |
---|---|---|
0 - Default | (Default) Uses the current printer setting | PrintOrientationDefault |
1 - Portrait | Prints sheet in portrait mode | PrintOrientationPortrait |
2 - Landscape | Prints sheet in landscape mode | PrintOrientationLandscape |
Set the PrintOrientation property before you use the PrintSheet method to print the sheet.
This property is set at the sheet level. Set the Sheet property before setting this property if there are multiple sheets.
Spread Designer
Choose the Sheet menu, then the Print Properties menu, select the Print Properties tab, and then choose an option from the Orientation group box in the Print Properties dialog box.
Data Type
Integer (Enumerated)
See Also
PrintSheet method
DLL Correspondence
SSPrint function