Type: Integer
Default Value: Print_Portrait
The orientation property of the CMDPrint class contains the orientation of your printed output. This property applies only when the printSetup property is set to false. Set this property to one of the global constants provided by the
Global Constant | Integer Value | Action |
---|---|---|
Print_Landscape | 2 | Landscape (horizontal page orientation) |
Print_Portrait | 1 | Portrait (vertical page orientation) |
The code fragment in the following example shows the use of the orientation property.
buttonPrint_click(btn: Button input) updating; vars cmdPrint : CMDPrint; begin create cmdPrint; cmdPrint.orientation := Print_Landscape; write cmdPrint.orientation; // Outputs 2 epilog delete cmdPrint; // Tidy end;