
BBjPrintPreviewBuilder::style
Description
In BBj 13.0 and higher, this method controls the view style. "HEIGHT" fits a page vertically in the available space, "WIDTH" horizontally in the available space, "TWO" displays two pages side-by-side.
Syntax
Return Value |
Method |
---|---|
style(string style) |
Parameters
Variable |
Description |
---|---|
style |
One of HEIGHT WIDTH or TWO |
Return Values
Returns the BBjPrintPreviewBuilder so you can continue configuration.
Remarks
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
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.