Welcome to LEAD Support Forum Login | Register | Faq  

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

Multi Page scan Cancel
Started by Prabhu at 07-25-2007 10:44. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  07-25-2007, 10:44
Prabhu is not online. Last active: 11/13/2007 12:22:24 PM Prabhu

Not Ranked
Joined on 07-25-2007
Posts 4
Multi Page scan Cancel
Reply Quote
I am using the leadtools for .NET and i have an autofeeding scanner. I start a scan using the twainsession.AcquireFast method and check the page in the AcquireMultiPage event. Based on what I find out about that page, I want to be able to continue scanning the rest of the pages in the hopper or cancel the scan completely. I know how to continue, but how do I cause the current scan to cancel?

Thanks


   Report 
  07-27-2007, 10:44
GregR is not online. Last active: 11/26/2008 3:40:25 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,717
Re: Multi Page scan Cancel
Reply Quote
Set the TwainAcquireMultiPageEventArgs.Cancel property to true.

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-10-2008, 6:19
pmarazzi@mutuionline.it is not online. Last active: 10/2/2008 2:53:25 PM pmarazzi@mutuionline.it

Top 150 Posts
Joined on 11-29-2004
Posts 20
Re: Multi Page scan Cancel
Reply Quote
ok but the feeder eat the second sheet and stops at half of the sheet.

Is possible to acquire only 1 sheet in the feeder? I know at the beginning that surely I need to scan only one sheet.

Basically, someone could tell me the sequence of instructions to acquire only 1 sheet from the ADF and leave the next sheets in the tray without eating the second one?

Thanks
   Report 
  06-10-2008, 6:32
pmarazzi@mutuionline.it is not online. Last active: 10/2/2008 2:53:25 PM pmarazzi@mutuionline.it

Top 150 Posts
Joined on 11-29-2004
Posts 20
Re: Multi Page scan Cancel
Reply Quote
I've tried doing this but it still doesn't work, the feeder eats all the sheets.

( I've set twnSession.MaxXferCount=1 )

"To control the number of pages, try to set the value of the twnSession.MaxXferCount Property before calling twnSession.Acquire.
Most Twain drivers accept a value of -1 to indicate scanning all available sheets from the feeder."
   Report 
  06-10-2008, 10:06
GregR is not online. Last active: 11/26/2008 3:40:25 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,717
Re: Multi Page scan Cancel
Reply Quote
As for the page scanning half way and then stopping, and for the TwainSession.MaxXferCount not working, this is likely a driver issue. 

Try setting CAP_AUTOFEED to false by using SetCapability.

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-10-2008, 12:23
pmarazzi@mutuionline.it is not online. Last active: 10/2/2008 2:53:25 PM pmarazzi@mutuionline.it

Top 150 Posts
Joined on 11-29-2004
Posts 20
Re: Multi Page scan Cancel
Reply Quote
it still take the next pages.

I've tried also setting CAP_AUTOSCAN to false but it didn't work.

The scanner model is HP Scanjet 5590.


   Report 
  06-10-2008, 16:18
GregR is not online. Last active: 11/26/2008 3:40:25 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,717
Re: Multi Page scan Cancel
Reply Quote
Does this occur with all scanners or only some?

Also, what is the file version of Leadtools.dll that you are using?

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Scanning/Captur... » Multi Page scan Cancel

Powered by Community Server, by Telligent Systems