InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Terminal Object / DefaultPrinter Property
In This Topic
    DefaultPrinter Property
    In This Topic
    Gets or sets the default printer for printer output.
    Syntax
    expression.DefaultPrinter As String
    where expression is a variable that represents a Terminal Object
    Remarks
    Assigning a default printer with this property has no effect on the default printer used by other Windows applications.

    The default printer string consists of the printer name, driver, and port as shown in these examples:

    DefaultPrinter = "HP LaserJet 4,WINSPOOL,\\Mynet\Myprint"

    DefaultPrinter = "Epson AP-4000,WINSPOOL,LPT1:"

    To force InfoConnect to always use the default printer specified in the Windows Control Panel, set this property to an empty string.

    See Also