GetPrinters()
Summary
Gets the model and driver names for all installed printers.
Syntax
printer_names = GetPrinters()
Returns
An array of two elements:
| Element | Type | Contents |
|---|---|---|
| 1 | Array | A list of printer model names (strings) |
| 2 | Array | A list of printer driver names (strings) |
Notes
-
GetPrinters() returns null if there are no installed printers.
-
Each model name string includes not only the printer model but its currently installed connection, e.g. "HP LaserJet 4 on LPT1:." This string and the driver string, which is the name of the device driver file, uniquely identify an installed printer.
See Also
| Function | Summary |
|---|---|
| GetDefaultPrinter() | Gets the default printer |
| GetLayoutPrinter() | Gets the printer for a layout window |
| SetLayoutPrinter() | Sets the printer for the current layout window |