APrinters()

This function asks Windows about installed printers and stores the results in an array.

Usage

nPrinterCount = APrinters( ArrayName )

Parameter

Value

Meaning

ArrayName

Name

Array in which to place printer information.

nPrinterCount

Positive Number

The number of rows in the array, which equals the number of installed printers.

0

No printers are installed.


The array that is created has two columns. The first column contains the name of the printer (as shown in the Printers applet in the Control Panel) while the second contains the name of the port for which the printer is installed. Both columns are character. Using APRINTERS() doesn't guarantee that a printer is actually connected and available, only that it was once installed in Windows. You still have to cope with broken, missing, or off-line printers.

Example

? APrinters(aPrinterList)

See Also

Array Manipulation, ANetResources(), GetPrinter(), PrintStatus(), PrtInfo(), Set Printer, Sys(13), Sys(1037)


Back to Table of Contents

Copyright © 2002-2018 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. Click for license .