GETDEFAULTPRINTER

Top  Previous  Next

Syntax

STRING = GETDEFAULTPRINTER

Description

Returns the name of the default printer, if any, assigned to the system. The name can subsequently be used in the OPENPRINTER function.

Parameters

None

Return value

A string containing the printer name or an empty string if no printing devices are set as default.

Remarks

See Also: OPENPRINTER

Example usage

printer = GETDEFAULTPRINTER