| 
 Purpose  | 
 Retrieve the paper orientation for a host printer page.  | 
| 
 Syntax  | 
 XPRINT GET ORIENTATION TO orent&  | 
| 
 Remarks  | 
 XPRINT GET ORIENTATION retrieves the orientation of the paper in the host printer, assigning the value to the long integer variable specified by orent&. 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  |