XPRINT SET ORIENTATION statement  

Purpose

Set the paper orientation for a host printer page.

Syntax

XPRINT SET ORIENTATION orent&

Remarks

XPRINT SET ORIENTATION sets the orientation of the paper in the host printer.  The value 1 indicates portrait mode, while 2 indicates landscape mode.  If a host printer is not attached, or does not support setting the orientation, error 57 is generated.

Normally, XPRINT SET ORIENTATION should not be executed mid-page, as it is not possible to print one page in both portrait and landscape modes.  It is best to execute this statement immediately after either XPRINT ATTACH or XPRINT FORMFEED.  If executed mid-page, PowerBASIC will automatically generate a new page, and apply the mode thereafter.

If you find it necessary to print text in both horizontal and vertical format, this can be accomplished by creating an additional font with FONT NEW and XPRINT SET FONT, using the pitch and escapement attributes.

See also

FONT NEW, XPRINT ATTACH, XPRINT GET ORIENTATION, XPRINT SET FONT