4D v16.3SET CURRENT PRINTER |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
SET CURRENT PRINTER
SET CURRENT PRINTER
The SET CURRENT PRINTER command is designates the printer to be used for printing with the current 4D application. Pass the name of the printer to be selected in the printerName parameter. To get a list of available printers, use the PRINTERS LIST command beforehand. SET CURRENT PRINTER allows you to designate the generic PDF printer of the system in order to print PDFs. The value to use depends on the version of the OS as well as that of 4D.
The SET CURRENT PRINTER command must be called before SET PRINT OPTION, so that the options available correspond to the selected printer. On the other hand, SET CURRENT PRINTER must be called after PAGE SETUP, otherwise the print settings are lost. This command can be used with the PRINT SELECTION, PRINT RECORD, Print form, and QR REPORT commands, and is applied to all 4D printing, including that in Design mode. If printer selection is carried out correctly, the system variable OK is set to 1. Should the opposite occur (for instance if the designated printer is not found), the system variable OK is set to 0 and the current printer remains unchanged. Creation of a PDF document under Windows 10 with 4D Developer Edition 64-bit: C_TEXT($pdfpath)
See also
|
PROPERTIES
Product: 4D HISTORY
Created: 4D 2003 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||