This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
Print Options
|
Constant | Type | Value | Comment |
_o_PDFCreator Printer name | String | PDFCreator | |
Destination option | Longint | 9 | value1: code specifying the type of print destination: 1=Printer, 2=File (PS on Mac), 3=PDF file, 5=Screen (macOS driver option). |
Double sided option | Longint | 11 | value1: 0=Single-sided or standard, 1=Double-sided. If value1=1, value2 contains the binding: 0=Left binding (default value), 1=Top binding. |
Generic PDF driver | String | _4d_pdf_printer |
|
kp preview automatic | Longint | 0 | Value for Print preview option |
kp preview none | Longint | 0 | Value for Print preview option |
kp preview PDF | Longint | 2 | Value for Print preview option |
kp preview XPS | Longint | 1 | Value for Print preview option |
Legacy printing layer option | Longint | 16 | (Windows only) value1 only: 1=select the GDI-based legacy printing layer for the subsequent printing jobs. 0=select the D2D printing layer (default). This selector is mainly intended to allow legacy plug-ins to print inside 4D jobs in 4D applications on Windows. |
Number of copies option | Longint | 4 | value1 only: number of copies to be printed. |
Orientation option | Longint | 2 | value1 only: 1=Portrait, 2=Landscape. If a different orientation option is used, GET PRINT OPTION returns 0 in value1. This option can be called within a print job, which means that you can switch from portrait to landscape, or vice versa, during the same print job. |
Page range option | Longint | 15 | value1=first page to print (default value is 1) and (optional) value2=number of the last page to print (default value -1 = end of document). |
Page setup dialog | Longint | 1 | Display the Page setup dialog box |
Paper option | Longint | 1 | If you use only value1, it contains the name of the paper. If you use both parameters, value1 contains the paper width and value2 contains the paper height. The width and height are expressed in screen pixels. Use the PRINT OPTION VALUES command to get the name, height and width of all the paper formats offered by the printer. |
Paper source option | Longint | 5 | (Windows only) value1 only: number corresponding to the index, in the array of trays returned by the PRINT OPTION VALUES command, of the paper tray to be used. This option can only be used under Windows. |
Print dialog | Longint | 2 | Display the Print job dialog box (default if omitted) |
Print preview option | Longint | 18 | (Windows only) value1: Format to use for print previews on Windows. Available values:
value2 (can be used with GET PRINT OPTION only): Print preview format actually used on Windows (can differ from value1 depending on the configuration). Available values:
|
Scale option | Longint | 3 | value1 only: scale value in percentage. Be careful, some printers do not allow you to modify the scale. If you pass an invalid value, the property is reset to 100% at the time of printing. |
Spooler document name option | Longint | 12 | value1 only: name of the current print document, which appears in the list of spooler documents. The name defined by this statement will be used for all the print documents of the session for as long as a new name or an empty string is not passed. To use or restore standard operation (using the method name in the case of a method, the table name for a record, etc.), pass an empty string in value1. |
GET PRINT OPTION
PRINT OPTION VALUES
PRINT SETTINGS
SET CURRENT PRINTER
SET PRINT OPTION
Product: 4D
Theme: List of constant themes
4D Language Reference ( 4D v20 R7)