IGxPrintersClass.DefaultPrinter

Syntax

DefaultPrinter: IGxPrinter;

Description

The DefaultPrinter property returns the printer that is installed in the operating system by default.

Example

Sub Main;

Var

Printer: IGxPrinter;

s: String;

Begin

Printer:=GxPrinters.DefaultPrinter;

s:=Printer.Name;

End Sub Main;

After executing the example the "s" variable contains the name of the printer installed in the operating system by default.

See also:

IGxPrintersClass