XPRINT GET ORIENTATION statement

Purpose | Retrieve the paper orientation for a host printer page.
Syntax | XPRINT GET ORIENTATION To OrentVar& Function Form: OrentVar& = XPRINT(ORIENTATION)
Remarks | XPRINT GET ORIENTATION retrieves the orientation of the paper in the host printer, assigning the value to the long integer variable specified by OrentVar&. The value 1 indicates portrait mode, while 2 indicates landscape mode. If the printer does not support paper orientation, 0 is returned. If a host printer is not attached, error 57 is generated.
See also | XPRINT ATTACH, XPRINT SET ORIENTATION