in

Archived Data Techniques Forums

Detect that no imaging devices connected

Last post 06-19-2009 10:02 AM by support. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-17-2009 3:09 PM

    • Sergey
    • Top 500 Contributor
    • Joined on 06-17-2009
    • Posts 3

    Detect that no imaging devices connected

    What is the correct way in ImageMan.Net Twain to detect that no imaging devices connected?
    Filed under: ,
  • 06-17-2009 3:47 PM In reply to

    Re: Detect that no imaging devices connected

    Hi,

    If the Twaincontrol sources.Count == 0 then there are no Twain drivers installed.

     

     

    Sean
    Data Techniques Online Support
  • 06-17-2009 3:54 PM In reply to

    • Sergey
    • Top 500 Contributor
    • Joined on 06-17-2009
    • Posts 3

    Re: Detect that no imaging devices connected

    Thanks for the quick answer! However my question is what if driver is installed but device is disconnected? Is there any way to check that a source is connected?
  • 06-18-2009 11:11 AM In reply to

    Re: Detect that no imaging devices connected

    Hello,

    Using TWAIN its not easy to do this consistently across all scanner drivers. You can check the capabilioty called: CAP_DEVICEONLINE but not all drivers implement it properly. Most drivers will generate a MsgBox when we call Enable on the driver and the scanneris off line but not all do.

     

     

    Sean
    Data Techniques Online Support
  • 06-18-2009 11:20 AM In reply to

    • Sergey
    • Top 500 Contributor
    • Joined on 06-17-2009
    • Posts 3

    Re: Detect that no imaging devices connected

    That helped for my case. Thank you!
  • 06-19-2009 10:02 AM In reply to

    Re: Detect that no imaging devices connected

    Hi Sergey,

    Glad to hear thats working for you. Pls let us know if you have any other questions.

     

     

    Sean
    Data Techniques Online Support
Page 1 of 1 (6 items)
Copyright 2009 Data Techniques, Inc. All Rights Reserved.