BBjAPI::lookupPrinters

Description

In BBj 4.0 and higher, this method looks up a list of printer names that satisfy a given set of javax.print.attribute.PrintService attributes.

Syntax

Return Value Method
BBjVector lookupPrinters(AttributeSet attributes, int client)

Parameters

Parameter Description
attributes Specifies the set of javax.print.attribute.PrintService attributes that must be satisfied by the list of printer names returned.
client Specifies whether to use local or client (remote) printer.

Return Value

Returns a list of printer names.

Remarks

None.

Example

rem 'Obtain a list of printer names

rem 'Obtain the instance of the BBjAPI object
let myAPI! = BBjAPI()

rem 'Obtain a list of printer names by attributes
let printerAttributes! = new javax.print.attribute.HashPrintServiceAttributeSet()
printerAttributes!.add(javax.print.attribute.standard.ColorSupported.SUPPORTED)
let myPrinters! = myAPI!.lookupPrinters(printerAttributes!,0)
release

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.