BBjForm::preview
Description
In BBj 12.00 and higher, this method adds the maximize, style, zoom, password, and secure parameters.
In BBj 7.00, this method previews the document in a SysGui window.
In BBj 4.00 and higher, this method previews the document.
Syntax
|
Variable |
Description |
|---|---|
|
void |
preview() |
|
void |
preview(BBjPrintPreview previewControl) |
|
void |
preview(boolean maximize, string style, BBjNumber zoom, string editPassword, string openPassword) preview(boolean maximize, string style, BBjNumber zoom, boolean secure) preview(boolean maximize, string style, BBjNumber zoom, boolean secure) |
Parameters
|
Variable |
Description |
|---|---|
|
previewControl |
Specifies the preview control in a SysGui window. |
|
maximize |
Initially maximize the preview. |
|
style |
Sets the page display style, one of HEIGHT, WIDTH, or TWO. |
|
zoom |
Sets initial zoom percent. |
|
editpassword |
Sets admin password for saved PDF. |
|
openpassword |
Sets password to allow opening the PDF. |
|
secure |
Create a secure PDF. |
Return Value
None.
Remarks
In BBj 10.00 and higher, these methods apply to PDF forms.
Example 1
|
Example 2 - Window
|
Example 3 - Password
|
Example 4 - Secure
Note: Saved PDF documents are by default secure. To turn off the default security, use the option provided in this example below:
|
Example - Purchase Requisition
See Also
BBj Object Creation and Assignment
BBjPrintPreviewBuilder::secure
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.