InfoConnect for Unisys
Attachmate.Reflection.Emulation.OpenSystems Namespace / ITerminal Interface / DefaultPrinter Property

In This Topic
    DefaultPrinter Property
    In This Topic
    Gets or sets the default printer to which InfoConnect sends printer output.
    Property DefaultPrinter As String
    Dim instance As ITerminal
    Dim value As String
    instance.DefaultPrinter = value
    value = instance.DefaultPrinter
    string DefaultPrinter {get; set;}
    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