BBjForm::print

Description

In BBj 4.0 and higher, this method prints the document.

Syntax

Return Value

Method

void

print()

Parameters

None.

Return Value

None.

Remarks

None.

Example

declare BBjPrinter printer!
declare BBjForm form!
declare BBjFormPage page!
declare BBjFormImage image!

rem 'Obtain an instance of a default BBjPrinter object
printer! = BBjAPI().getBBjPrinter(1)

rem 'Get BBjForm for the selected printer
form! = printer!.getForm(1)

rem 'Get a page
page! = form!.createPage()

rem 'Create an image element for the page
logo$="https://www.basis.cloud/images/basislogo.jpg"
image! = page!.newImage(logo$,0,0,150,53)

rem 'Add the element to the page
page!.add(image!)

rem 'Print the form
form!.print()
release

Example - Purchase Requisition

See Also

BBjAPI

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