| 4D v18Get current printer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v18
 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, the system variable OK is set to 0. Otherwise, it is set to 1.
	Product:  4D
	Theme:  Printing
	Number:  
        788
        
        
        
	
	Created:  4D 2003
	Modified:  4D v15 R5
	
	
	4D Language Reference ( 4D v18)
	
	
	
 Add a comment
Add a comment