IGxPrintersClass.DefaultPrinter

Syntax

DefaultPrinter: IGxPrinter;

Description

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

Example

Sub UserProc;
Var
    Printer: IGxPrinter;
    s: String;
Begin
    Printer := GxPrinters.DefaultPrinter;
    Debug.WriteLine(Printer.Name);
End Sub UserProc;

After executing the example the development environment console displays name of the printer installed in the operating system by default.

See also:

IGxPrintersClass