4D v14.3GET PRINT OPTION |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
GET PRINT OPTION
|
GET PRINT OPTION ( option ; value1 {; value2} ) | ||||||||
Parameter | Type | Description | ||||||
option | Longint, String |
![]() |
Option number or PDF option code | |||||
value1 | Longint, String |
![]() |
Value 1 of the option | |||||
value2 | Longint |
![]() |
Value 2 of the option | |||||
The GET PRINT OPTION command returns the current value(s) of a print option.
The option parameter enables you to specify the option to get. You can either one of the following predefined constants, located in the “Print Options” theme (longint), or a PDF option code (string).
The option constants are the following:
Constant | Type | Value |
Paper option | Longint | 1 |
Orientation option | Longint | 2 |
Scale option | Longint | 3 |
Number of copies option | Longint | 4 |
Paper source option | Longint | 5 |
Color option | Longint | 8 |
Destination option | Longint | 9 |
Double sided option | Longint | 11 |
Spooler document name option | Longint | 12 |
Mac spool file format option | Longint | 13 |
Hide printing progress option | Longint | 14 |
A PDF option code consists of two parts, OptionType and OptionName, combined together as "OptionType:OptionName".
The command returns, in the value1 and (optionally) value2 parameters, the current value(s) of the specified option.
For more information on options, PDF option codes and possible values, refer to the description of the SET PRINT OPTION command.
Note the following specific features of the GET PRINT OPTION command:
The system variable OK is set to 1 if the command has been executed correctly; otherwise, it is set to 0.
Product: 4D
Theme: Printing
Number:
734
Modified: 4D 2004.3
PRINT OPTION VALUES
SET PRINT OPTION
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)
Inherited from : GET PRINT OPTION ( 4D v11 SQL Release 6)