BBjAPI::getDefaultPrinterName

Description

In BBj 13.00 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.

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.