BjForm::setDefaultUnits

Description

In BBj 4.0 and higher, this method sets the default units for new pages.

Syntax

Return Value

Method

void

setDefaultUnits(double conversion)

Parameters

Variable

Description

conversion

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

Return Value

None.

Remarks

None.

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.
myForm!.setDefaultUnits(myForm!.MM_UNITS)
release

Example - Purchase Requisition

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.