BBjAPI::getDefaultPrinterName

Description

In BBj 13.0 and higher, this method returns the name of the default printer.

Syntax

Return Value Method
string getDefaultPrinterName(int client)

Parameters

Parameter Description
client Specifies whether to use local or client (remote) printer; 0 = local, 1 = remote.

Return Value

Returns the name of the default printer.

Remarks

None.

Example

rem 'Obtain the default printer name

rem 'Obtain the instance of the BBjAPI object
let myAPI! = BBjAPI()

rem 'Obtain the default printer name
let default$ = myAPI!.getDefaultPrinterName(0)

release

See Also

BBjAPI

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