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

Return Value

Method

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.