BBjPrinter

Description

In BBj 4.00 and higher, a BBjPrinter object allows the user to select a printer and start printing.

Creation

BBjAPI > BBjPrinter

The BBjPrinter object is created through the following BBjAPI object method:

Return Value

Method

BBjPrinter

getBBjPrinter(AttributeSet attributes, boolean client)

BBjPrinter

getBBjPrinter(boolean client)

BBjPrinter

getBBjPrinter(string name, boolean client)

Methods of BBjPrinter

Return Value

Method

printRequestAttributeSet

getAttributes()

BBjForm

getForm(boolean dialog)

void

setAttributes(PrintRequestAttributeSet attributes)

void setNative(boolean native)

Remarks

Server-side (local) printing in UNIX requires an X server to be running. When using a client (remote) printer, the client machine must have a graphics environment, such as X, but the server does not.

Constants

None.

Example

rem 'Get PrintRequest attribues for print job

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

rem 'Obtain an instance of a default BBjPrinter object
let myBBjPrinter! = myAPI!.getBBjPrinter(0)
release

See Also

BBjAPI

BBj Object Variables

BBj Object Creation and Assignment

BBj Object Error Handling

BBj Object Operators

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