ImageMan ActiveX
Selecting a Scanner

Using the TWAIN Select Scanner Dialog

To display the TWAIN Select scanner dialog use the SelectScanner method which will display the dialog and set the CurrentSource property to the scanner the user selects.

 

ImTwain1.SelectScanner

' Set the label caption to the selected scanner's name

lblScanner.Caption = ImTwain1.CurrentSource.ProductName

 

Setting the default scanner Programmatically

To set the current scanner programmatically, use the Sources property which is a collection of Identity objects which describe each of the scanners on the system and set the CurrentSource property to the Identity object of the desired scanner.

 

' Set the default scanner to the first entry in the Sources Collection

ImTwain1.CurrentSource = ImTwain1.Sources(1)

 

 


© 2014 Data Techniques, Inc. All rights reserved.

Submit feedback on this topic