This method lists the installed printers. This method is recommended when using scripting or other languages that require variant types
Parameters
Name | Explanation |
---|---|
DefaultPrinterNo | The number of the default printer (from 0) |
Return Value
Returns the number of printers retrieved
Explanation
The EnumPrintersVariant method lists the installed printers. This method is recommended when using scripting or other languages that require variant types.
If the return value is 1 or more, the names of the retrieved printers will be set in the Printers property. The list of printers will be in the following format: "xxxxx,xxxxx,xxxxx,E.., " (delimited by commas and ends with a comma).
The DefaultPrinterNo parameter refers to the number of the default printer on the list that appears in the Printers property. The first printer on the list is referred to by the number 0.
Also see the EnumPrinters method.