GetPrinterList
Rendering and printing
Description
Appends the names of all printers visible to the session to a string list: the locally installed printers and the connections to remote printers. The enumeration goes through the spooler, so the names are exactly the ones the Windows Print Manager shows.
Names are appended in enumeration order and UTF-8 encoded, matching the string list type used across the printing helpers. Outside Windows the procedure is a no-op, which keeps callers portable without guarding every call site.
Syntax
Delphi
Procedure GetPrinterList(List: TPDFlibStringList);Parameters
| List | Receives the printer names; existing entries are kept and the names are appended |
|---|
Remarks
The library-level GetPrinterNames method returns the same enumeration through the library object.
See also
GetPrinterNames, GetLatestPrinterNames, GetDefaultPrinterName, GetPrinterBins, GetPrinterCapabilities