SET CURRENT PRINTER

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2003


SET CURRENT PRINTER (printerName)

ParameterTypeDescription
printerNameStringName of printer to be used

Description

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

The SET CURRENT PRINTER command is used to designate 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 new PRINTERS LIST command beforehand.

If you pass an empty string in printerName, the current printer defined in the system will be used.

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 LABEL, PRINT RECORD, Print form, and QR REPORT commands, and is applied to all 4th Dimension printing, including that in Design mode.

It is imperative for print commands to be called with the > parameter (where applicable) so that the specified settings are not lost.

See Also

Get current printer, PRINTERS LIST.

System Variables or Sets

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.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next