BBjPrintPreviewBuilder


Description

In BBj 13.0 and higher, the BBjPrintPreviewBuilder object provides methods for configuring print preview, for example setting the initial view to two pages.

Creation

BBjAPI > BBjPrinter > BBjForm > BBjPrintPreviewBuilder

The BBjPrintPreviewBuilder is created through the following BBjForm methods:

Return Value

Method

BBjPrintPreviewBuilder

previewBuilder()

Methods of BBjPrintPreviewBuilder

Return Value

Method

BBjPrintPreviewBuilder

closeOnPrint(boolean close)

BBjPrintPreviewBuilder

editPassword(string editPassword)

BBjPrintPreviewBuilder

maximize(boolean maximize)

BBjPrintPreviewBuilder

openPassword(string p_openPassword)

void

preview()

BBjPrintPreviewBuilder

secure(boolean secure)

BBjPrintPreviewBuilder

style(string style)

BBjPrintPreviewBuilder

zoom(double zoom)

Remarks

None.

Constants

None.

Example

Copy
REM Preview the document

REM Obtain the instance to the BBjAPI object
myAPI!=BBjAPI()

REM Obtain an instance of a default BBjPrinter object
LET myBBjPrinter!=myAPI!.getBBjPrinter(0)

REM Get BBjForm for the selected printer
LET myBBjForm!=myBBjPrinter!.getForm(1)

REM Preview the document
myBBjForm!.preview()

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.