Method XbpPrinter():setOrientation() Foundation

Retrieves or sets the paper orientation for a printer.

Syntax
:setOrientation( [<nOrientation>] ) --> nOrientationOld | NIL
Parameters
<nOrientation>
A #define constant from XBPDEV.CH must be used for <nOrientation>. The following constants are available:
#define constants for :setOrientation()
Constant Description
XBPPRN_ORIENT_PORTRAIT Prints vertically (portrait)
XBPPRN_ORIENT_LANDSCAPE Prints horizontally (landscape)
Return

The method returns the previous setting or NIL, if the printer does not support this option.

Description

The method instructs the printer whether to print horizonally or vertically.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.