This project has moved. For the latest updates, please go here.

check scanner online

Sep 20, 2014 at 11:57 AM
hi there i have a question:
After scanning if I disconnect the usb cable. How I can check that the scanner is connected before scan again?
i tried this but don't work

If mytwain.IsCapSupported(TwCap.DeviceOnline) & TwQC.Get <> 0 Then
            enabled = mytwain.GetCap(TwCap.DeviceOnline)
End If

thanks for help
Coordinator
Sep 20, 2014 at 9:01 PM
Hello, jesussama.
I tried the following code and it worked
var _val=this._twain32.GetCurrentCap(TwCap.DeviceOnline);
What you have is not working? What a exception and stack trace?
Marked as answer by SARAFF on 10/1/2014 at 7:36 AM