Welcome to LEAD Support Forum Login | Register | Faq  

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

cancel AcuirePage and start nw acuirepages
Started by froemmel at 04-25-2008 4:01. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  04-25-2008, 4:01
froemmel is not online. Last active: 5/20/2008 8:21:20 AM froemmel

Not Ranked
Joined on 04-24-2008
Posts 6
cancel AcuirePage and start nw acuirepages
Reply Quote
Hi,

is there any possibility to stop a scan process?

At the moment I set the cancel property of the the TwainAcquirePageEventArgs to true. But after that I can´t start scanning again?
<code>
      private void acquirePage(object sender, TwainAcquirePageEventArgs e)
        {
            if (stopScan == true)
            {
                e.Cancel = true;
            }
        ......
    }
</code>

How to do this in a correct way?


   Report 
  04-27-2008, 11:46
Adnan Ismail is not online. Last active: 11/20/2008 3:13:59 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,270
Re: cancel AcuirePage and start nw acuirepages
Reply Quote

Can you tell me what version of LEADTOOLS you are using, and what build number (version info) of LEADTOOLS DLLs you have?


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  04-28-2008, 5:10
froemmel is not online. Last active: 5/20/2008 8:21:20 AM froemmel

Not Ranked
Joined on 04-24-2008
Posts 6
Re: cancel AcuirePage and start nw acuirepages
Reply Quote
Hi,

I use LEADTOOLS V15 and Leadtools.Twain.dll Version is: 15.0.1.0.

After I set cancel  to true the scanners stop scanning immediately but when i try to scan again the scanner starts a recalibration and after that I get the followingen error: "DS or DSM reported Error, app shouldn't (no need for your app to report the error)".

When then scanner ends a operation in the correct way ( e.g. no more docuemnts in the feeder or the scan ist finish) I can start another scan-process whiout any problems.

Is there any other way to stop a scan process?





   Report 
  04-28-2008, 10:57
Adnan Ismail is not online. Last active: 11/20/2008 3:13:59 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,270
Re: cancel AcuirePage and start nw acuirepages
Reply Quote
I added similar code to our C# TwainDemo under this path, but I did not see the problem and I did not get the error you got:
LEADTOOLS 15\Examples\DotNet\CS\TwainDemo

Can you try to modify the demo and see if it works with you? In my test I used a FUJITSU fi-5110C scanner in my test. if you still get the same result, this is probably cause by the Twain driver itself, not by LEADTOOLS.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  04-28-2008, 11:12
froemmel is not online. Last active: 5/20/2008 8:21:20 AM froemmel

Not Ranked
Joined on 04-24-2008
Posts 6
Re: cancel AcuirePage and start nw acuirepages
Reply Quote
Hi,

i changed the example as you suggested, but after canceling the scan process I get the same error. :-(

I use a Plustek PL3000 as scanner. I´ll try a other scanner modell, but first I have to grab one from one of my colleges :-)

I´ll keep you informed.

   Report 
  05-20-2008, 3:23
froemmel is not online. Last active: 5/20/2008 8:21:20 AM froemmel

Not Ranked
Joined on 04-24-2008
Posts 6
Re: cancel AcuirePage and start nw acuirepages
Reply Quote
Hi, I changed my Scanner model. Now I use a Kokak i1210 Scanner and the cancel-event now works great.
So I will put my Plustek to the black list.

Nice regards from Germany.



   Report 
Post
LEAD Support Fo... » Developer » Scanning/Captur... » cancel AcuirePage and start nw acuirepages

Powered by Community Server, by Telligent Systems