DefaultPrinter: IGxPrinter;
The DefaultPrinter property returns the printer that is installed in the operating system by default.
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: