BBjForm::createPage

Description

In BBj 4.0 and higher, this method obtains a new page for the document.

Syntax

Return Value

Method

BBjFormPage

createPage()

BBjFormPage

createPage(double conversion)

Parameters

Variable

Description

conversion

Conversion factor in points per unit. Constants are supplied for conversion units.

Return Value

Returns a BBjFormPage object for the document.

Remarks

Use the BBjFormPage from this call to construct a page for the document.

Example

REM Create a new page

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 myForm!=myBBjPrinter!.getForm(1)

REM Get a new page
LET myPage1!=myForm!.createPage()

REM Get a new page using MM units.
LET myPage2!=myForm!.createPage(myForm!.MM_UNITS)

RELEASE

Example - Purchase Requisition

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.