Count: Integer;
The Count property returns the number of printers installed in the operating system.
Sub Main;
Var
Printers: IGxPrinters;
i: Integer;
Begin
Printers:=New GxPrinters.Create;
i:=Printers.Count;
End Sub Main;
After executing the example the "i" variable contains the number of printers installed in the operating system by default.
See also: