4D v14.3

Get current printer

Home

 
4D v14.3
Get current printer

Get current printer 


 

Get current printer -> Function result 
Parameter Type   Description
Function result  String in Name of the current printer

Note: This command does not work under Mac OS 9. Under Windows, it requires at least Windows 2000.

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 Mac OS) 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.

If no printer is installed, the system variable OK is set to 0. Otherwise, it is set to 1.

 
PROPERTIES 

Product: 4D
Theme: Printing
Number: 788

The OK variable is changed by the command

 
HISTORY 

Created: 4D 2003

 
SEE ALSO 

PRINTERS LIST
SET CURRENT PRINTER

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)