Spread 8.0 Documentation
PrintOrientation Property
Support Options
ActiveX Reference > ActiveX Properties > PrintOrientation Property

Glossary Item Box

PrintOrientation Property


See Also    DLL    Example

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

C++

long CSpreadSheet::GetPrintOrientation( );
void CSpreadSheet::SetPrintOrientation(long value);

Visual Basic

[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

Print Properties

PrintSheet method

DLL Correspondence

SSPrint function

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.