4D Write v16WR SET PRINT OPTION |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v16
WR SET PRINT OPTION
|
WR SET PRINT OPTION ( area ; option ; value1 ; value2 ; value3 ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Write area | |||||
option | Longint |
![]() |
Option number | |||||
value1 | Longint |
![]() |
Value 1 of the option | |||||
value2 | Longint |
![]() |
Value 2 of the option | |||||
value3 | String |
![]() |
Value 3 of the option | |||||
The WR SET PRINT OPTION command is used to modify the value of a print option by programming for the 4D Write area designated by the area parameter. Each option defined using this command will remain applied to the 4D Write area until this area is erased. Options that are usually saved with 4D Write documents (such as orientation) are also saved.
The current print parameters of 4D and those of other 4D Write areas are not modified.
The option parameter lets you specify the option to be modified. You can pass either a value or one of the following predefined constants, located in the “WR Print options” theme.
Pass the new value(s) of the specified option in the value1 and (optionally) value2 and value3 parameters. The number and nature of the values to be passed depends on the type of option specified.
Certain values may have been set via constants, found in the WR Parameters theme. For more information about the options and their values, refer to the following table:
Option constant (Value) | value1 | value2 | value3 |
wr paper option (1) | Height | Width | - |
0 | 0 | Name | |
wr orientation option (2) | wr portrait (1), wr landscape (2) | - | - |
wr scale option (3) | Number (%) | - | - |
wr number of copies option (4) | Number | - | - |
wr paper source option (5) | Windows only: | ||
Index (number) | - | - | |
wr pages from option (6) | Number (1=default) | - | - |
wr pages to option (7) | Number (1=default, end of document) | - | - |
wr color option (8) | wr black and white (1), wr color (2) | - | - |
wr destination option (9) | wr send to printer (1), | 0 | - |
wr send to file (2), | 0 | Access path | |
wr send to PDF file (3) | 0 | Access path | |
wr double sided option (11) | Windows only: | ||
wr single sided (0) (standard) | - | - | |
wr double sided (1) | wr left binding (0) | - | |
(default), wr top binding | |||
wr spooler document name option (12) | 0 | 0 | Name of document |
If the value passed for an option is invalid or if it is not available on the printer, the command returns an error (that you can intercept using an error-handling method installed by the WR ON ERROR command) and the current value of the option remains unchanged.
The OK system variable is set to 1 if the command has been executed correctly; otherwise, it is set to 0.
Product: 4D Write
Theme: WR Printing
Number:
89421
Created: 4D Write 2004
4D Write Language ( 4D Write v16)