IGxPrinter.Name

Syntax

Name: String;

Description

The Name property returns the name of the printer.

Example

Sub Main;

Var

Printers: IGxPrinters;

Printer: IGxPrinter;

s: String;

Begin

Printers:=New GxPrinters.Create;

Printer:=Printers.Item(0);

s:=Printer.Name;

End Sub Main;

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

See also:

IGxPrinter