BBjPrinter::setNative

Description

In BBj 15.12 and higher, this method sets whether or not the native printer driver is used.

Syntax

Return Value Method
void setNative(boolean native)

Parameters

Parameter Description
native

An indication of whether the native or universal printer driver is used.

0 = Enables the universal printer. This is the default.

1 = Enables the native printer driver

Return Value

None.

Remarks

Call BBjPrinter::setNative before you call BBjPrinter::getForm.

Example

declare HashPrintRequestAttributeSet attr!
declare BBjPrinter printer!
declare BBjForm form!
declare PrintService printService!

rem 'GET THE PRINTER
printer! = BBjAPI().getBBjPrinter(1)

rem 'SET TO USE THE NATIVE PRINT DIALOGUE
printer!.setNative(1)

rem 'OPEN THE SYSTEM PRINT DIALOGUE
form! = printer!.getForm(1)

rem 'BUILD MY PAGE CONTENT
formPage! = form!.createPage()
para1! = formPage!.newParagraph()
para1!.setText(new java.text.AttributedString("text"))
para1!.setText("1. This is Paragraph one")
formPage!.add(para1!)

rem 'OPEN THE PREVIEW WINDOW
form!.preview()

release

ClosedVersion History

  • BBj 15.12: BBjPrinter::setNative added.

See Also

BBjAPI

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