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.