Leadtools.Wia Namespace > WiaSession Class : SelectDevice Method |
'Usage Dim instance As WiaSession Dim deviceId As String instance.SelectDevice(deviceId)
function Leadtools.Wia.WiaSession.SelectDevice( deviceId )
Use this function when working with multiple WIA devices installed on a machine in order to select the WIA device without displaying the Select Device dialog. To do this, enumerate the WIA devices by calling the EnumDevices method. Then use it to keep a list of all received device IDs. Then call SelectDevice method using the device ID for the device to be selected.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2