|Top Previous Next|
Returns information about installed printers.
APRINTERS(ArrayName [, nValue])
Specifies which information should be returned.
Windows Management Instrumentation is required for nValue being 0 and 1. Accessing printer information via WMI is significantly slower than using other means. If you only need the printer name it's therefore recommended to use a nValue of 2 to limit the result to just the printer name. This option doesn't go through WMI and is therefore much faster.
Windows Mobile: The return value is always 0, because the Compact Framework does not have support for printers. The array remains unchanged.
Mono: As Mono doesn't support Windows Management Instrumentation, you must use a nValue of 2 on Mono.