InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / IbmPrinter Object / DeviceName Property
In This Topic
    DeviceName Property (IbmPrinter)
    In This Topic
    Gets or sets the device to connect to.
    Syntax
    expression.DeviceName As String
    where expression is a variable that represents a IbmPrinter Object
    Exceptions
    ExceptionDescription
    This exception is thrown if the set parameter is too long for the current terminal type.
    This exception is thrown when you modify a property that was secured via the Permissions Manager or that can only be modified by an Administrator.
    Remarks
    If you do not specify a device name, InfoConnect creates a unique device name for the current session and provides it to the host when you log on. If AutoConfig is not running on the host, the device name specified must match one of the device names stored on the host. This property causes an error when InfoConnect is connected to a host. Use the IsConnected property to determine if a connection already exists.

    This setting is only relevant to 5250 printer sessions

    The default is "". This string can be up to 10 characters long for 5250 sessions

    See Also