1

Can you please provide an example of using EnumPrinterData function in Delphi to get a list of printers in system?

Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156

1 Answers1

3

To get a simple list of installed printers, you don't need EnumPrinterData. You can use TPrinter.Printers property:

for I := 0 to Printer.Printers.Count - 1 do
  Writeln(Printer.Printers[I]);
Ondrej Kelle
  • 36,941
  • 2
  • 65
  • 128