XPRINT GET ATTACH statement  

Purpose

Retrieve the name of the attached host printer.

Syntax

XPRINT GET ATTACH TO PrinterVar$

Function Form:

PrinterVar$ = XPRINT$(ATTACH)

PrinterVar$ = XPRINT$

Remarks

XPRINT GET ATTACH returns the name of the attached host printer, which is the printer that would be used by XPRINT statements. If there is no attached host printer, an empty string is returned. XPRINT$ is typically used to detect if an XPRINT ATTACH operation was successful.

See also

XPRINT ATTACH