guides:programming:programmers_reference_manual:orientation_set_printer_message

ORIENTATION Set_Printer Message

The ORIENTATION message is used to change the orientation in the middle of a report. The orientation will change on the next page that is printed.

Parameter
Description of Fields
Comments
Default
Parm1 – Orientation
<1> Orientation
0=Portrait
1=Landscape
0
/*  The following example shows how to use the ORIENTATION message to change the orientation of the report. */

declare function Set_Printer
$insert OIPRINT_EQUATES
stat = Set_Printer("INIT") ;* Start printing
stat = Set_Printer("TEXT", "Portrait.")

*  Change margins to Landscape
stat = Set_Printer("ORIENTATION", 1)
stat = Set_Printer("PAGEBREAK")
stat = Set_Printer("TEXT", "Landscape.")
stat = Set_Printer("TERM") ;* End printing
 

 
  • guides/programming/programmers_reference_manual/orientation_set_printer_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1