BBjPrinter

Creation Path


BBjAPI

|

+--BBjPrinter

 

Description

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

Creation

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

Return Value

Method

BBjPrinter

getBBjPrinter(int client)

BBjPrinter

getBBjPrinter(string name, int client)

BBjPrinter

getBBjPrinter(AttributeSet attributes, int client)

 

Methods of BBjPrinter

Return Value

Method

printRequestAttributeSet

getAttributes()

BBjForm

getForm(boolean dialog)

void

setAttributes(PrintRequestAttributeSet attributes)

 

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 Assignment

BBj Object Error Handling

BBj Object Operators

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



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.