APRINTERS()

Top  Previous  Next

Returns information about installed printers.

Syntax

APRINTERS(ArrayName [, nValue])

Parameters

nValue

Specifies which information should be returned.

 

nValue

Description

0

Returns a two-column array with printer name and port name.

 

1

Returns a five-column array

 

2

Specific to Guineu. Returns a single column array with just the printer name.

Remarks

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.

Compatibility

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.