This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
Get current printer
|
Get current printer -> Function result | ||||||||
Parameter | Type | Description | ||||||
Function result | String |
![]() |
Name of the current printer | |||||
The Get current printer command returns the name of the current printer defined in the 4D application. By default, on start-up of 4D, the current printer is the printer defined in the system.
If the current printer is managed using a print server (spooler), the complete access path (under Windows) or the name of the spooler (under macOS) is returned.
To obtain the list of available printers as well as additional information, use the PRINTERS LIST command. To modify the current printer, use the SET CURRENT PRINTER command.
Note: When the Generic PDF driver constant is used with SET CURRENT PRINTER, Get current printer returns "_4d_pdf_printer" or the actual name of the PDF driver.
If no printer is installed, an error is generated.
Product: 4D
Theme: Printing
Number:
788
Created: 4D 2003
Modified: 4D v15 R5
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)