Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您能否提供一个在 Delphi 中使用 EnumPrinterData 函数获取系统中打印机列表的示例?
要获得已安装打印机的简单列表,您不需要EnumPrinterData. 您可以使用TPrinter.Printers属性:
EnumPrinterData
TPrinter.Printers
for I := 0 to Printer.Printers.Count - 1 do Writeln(Printer.Printers[I]);