Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: How do I detect when scanner is finished
Started by sears at 07-01-2009 2:42. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  07-01-2009, 2:42
sears is not online. Last active: 8/7/2009 7:34:15 AM sears

Top 150 Posts
Joined on 06-23-2009
Posts 21
How do I detect when scanner is finished
Reply Quote

I just red the post "How do I detect when scanner is finished ".

Adnan Ismail said :

"You can check the CAP_FEEDERLOADED which is supported by all sources with feeder devices. If it return false, this means that there are no more documents in the feeder and the twain finished scanning, if it returns true, this means that there are still documents to be scanned. "

Then how to differentiate  between *1 and *2

*1 Form beginning(doesn't start scan),no documents in the feeder,then you click "scan" to start scan.

*2 No more documents in the feeder and the twain finished scanning.


   Report 
  07-01-2009, 10:40
Adam Boulad is not online. Last active: 12/15/2009 10:50:44 AM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 1,125
Re: How do I detect when scanner is finished
Reply Quote
One of the differences is that in the first case, the Twain Page event (or callback) does not get triggered, but in the second case it gets triggered.
Also, depending on your programming environment, you might get an exception or error return code if you try to scan with no pages in the feeder.
Adam Boulad
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Scanning/Captur... » Re: How do I detect when scanner is finished

Powered by Community Server, by Telligent Systems