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

Return Value

Method

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.