TwainControllerGetTwainDevices Method |
Namespace: Atalasoft.Twain
TwainController twain = new TwainController(this); twain.OpenSourceManager(); TwainIdentity[] devs = twain.GetTwainDevices(); foreach (TwainIdentity id in devs) { if (id.ProductName.StartsWith("Fujitsu")) { // ..... } } // ....... twain.CloseSourceManager(); twain.Dispose();
Dim twain As TwainController = New TwainController(Me) twain.OpenSourceManager() Dim devs() As TwainIdentity = twain.GetTwainDevices() Dim id As TwainIdentity For Each (id In devs) { If id.ProductName.StartsWith("Fujitsu") Then ' ..... End If } ' ....... twain.CloseSourceManager() twain.Dispose()