BBjFormPage::add

Description

In BBj 4.00 and higher, this method adds a BBjFormElement to the page in printing order.

Syntax

Return Value

Method

void

add(BBjFormElement object)

Parameters

Variable

Description

object

Specifies the element to be printed.

Return Value

None.

Remarks

This method adds an object obtained from the various methods of the BBjFormPage to the page.

Example

rem 'Add print object to 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 myBBjForm! = myBBjPrinter!.getForm(1)

rem 'Get a new page
let myBBjFormPage! = myBBjForm!.createPage()

rem 'Get a new paragraph
let para! = myBBjFormPage!.newParagraph()

rem 'Add print object to page
myBBjFormPage!.add(para!)
release

See Also

BBjAPI

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