Skip to main content
Skip table of contents

f$Word: Printer list


f$Word: Printer list

Retrieve the list of the printers

Syntax:

Status = f$Word('Printer list','NamePrinterList','Option')

 

Argument

Type

Meaning

 

PrinterList

String

Keyword

 

NamePrinterList

String

Name of an indexed ePOS parameter which the list of printers is written to

 

Option

String

'' : List of known printers
'N' : List of network printers

Result:

Integer

0: Command successfully executed

-1: No printer list available..

Example:

Status = f$Word('Document', 'e:\\temp\\letter.doc' , 'Open' )
Status = f$Word('PrinterList','list','')
PrinterNo = 1
Taste = f$Dialog('list')

Status = f$Word('Default printer', list[PrinterNo] , 'AltPrinter' )

Status = f$Word('Print', '' , '' )

Status = f$Word('Default printer', AltPrinter, '' )

Status = f$Word('Close document', '' , 'N')

Status = f$Word('End', '' , 'End'

In this example, the printer list is determined and presented for the user to choose. Then this printer will be used to print, and the default is restored afterwards.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.