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.