문제

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

도움이 되었습니까?

해결책

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]);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top