BBjConfig::suppressPrinterAckBack
Description
Controls whether the Interpreter waits for a response from the printer before processing the next program statement.
Syntax
Return Value |
Method |
---|---|
void |
suppressPrinterAckBack(boolean shouldSuppress) |
Parameters
Variable |
Description |
---|---|
shouldSuppress |
Specifies whether to turn suppression on or off. 0 = No suppression (False) 1 = Suppression (True) |
Return Value
None.
Remarks
When BBj opens a printer channel that is writing to a printer device on the client, there are two Java Objects involved; the PrintDelegateStub, which resides on the server and the PrintDelegateImpl, which resides on the client. In response to a PRINT in the BBj program, the Interpreter sends a command to the PrintDelegateStub. The PrintDelegateStub then sends a message to the (remote) PrintDelegateImpl, which communicates to the printer device itself. If any error occurs, the PrintDelegateImpl returns an error message to the PrintDelegateStub. This results in an error condition within the BBj program. If no error occurs, then the PrintDelegateImpl sends an ACK message back to the PrintDelegateStub.
If suppressPrinterAckBack is set to FALSE, then the Interpreter will not execute the next program command until it receives either an error or an ACK from the PrintDelegateImpl. If suppressPrinterAckBack is set to TRUE, then the interpreter will execute the next program statement without waiting for an error message or an ACK from that channel.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.