You are here: Development Standards > Routines > General Routines > GENPRBBJ.PUB

# GENPRBBJ.PUB

GENPRBBJ.PUB is a public program for displaying the available java printer selections that are configured to either the client workstation, or the printers that BBjServices can see on the server where BBjServices is running.

GENPRBBJ.PUB is generally called by GENOTBBJ.PUB. This program has two main areas: getting all printers available to BBj thru Java, and the actual selection process.

`XXXX ENTER P_DEVICE$,P_CHANNEL,PREVIEW`

Variable | Description
P_DEVICE$ | Set to the printer selected
P_CHANNEL | Not used
PREVIEW | Not used

Exit Points | Explanation
EXIT | GENPRBBJ.PUB.PUB does not return an error code.

Java functions are used to find out which printers are available to BBj. All printers that are set up on the client or server machine is displayed. This can be controlled thru Resource Manager, User Preferences, with the "BBj Forms Printers" option.

The printer selection uses GENINPUT.PUB. After a valid printer choice is made, the java name of the printer is returned thru the P_DEVICE$ variable.