4D v16.3PRINT OPTION VALUES |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
PRINT OPTION VALUES
PRINT OPTION VALUES
In namesArray, the PRINT OPTION VALUES command returns a list of value names available for the print option defined. Optionally, you can retrieve information for each value in info1Array and info2Array. The option parameter allows you to specify the option to get. You must pass one of the following constants of the “Print Options” theme (options able to return lists of value names):
After command execution, the namesArray array as well as, where applicable, the info1Array and info2Array arrays will be filled in by the command with the names and information of the available values. If you pass value 1 (Paper option) in the option parameter, the command will return the following information:
Note: In order to obtain this information, the print driver must have access to a valid PPD (PostScript Printer Description) file for the printer. In order to apply a specific paper format using the SET PRINT OPTION command, you can either pass one of the values of namesArray, the corresponding values of info1Array and info2Array. If you pass value 5 (Paper source option) in the option parameter, the command returns the names of the different trays available in namesArray, and their internal Windows ID numbers in info1Array (info2Array remains empty). The order of the values in the arrays is defined by the print driver. To indicate a tray using the SET PRINT OPTION command, you must pass the index, as found in the namesArray or info1Array arrays, of the element desired. Note: This option can only be used under Windows. For more information on the different print options, refer to the description of the SET PRINT OPTION and GET PRINT OPTION commands. All the information returned by these commands is supplied by the operating system. Refer to the documentation of your system for more details about specific options. Note: The PRINT OPTION VALUES command only operates with PostScript printers.
See also
|
PROPERTIES
Product: 4D
HISTORY
Created: 4D 2003 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||