Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, April 8, 2008 12:32:30 PM(UTC)
matthew.gaskill

Groups: Registered
Posts: 6


I am currently upgrading from v13 to v15 of Leadtools and I have come across a problem.

<br><br>
When scanning from this scanner(Canon DR-7580) using the following options.
<br><br>
Feeding Option = Automatic Feeding
Scanning Option = Standard

After the last page is scanned it attempts to scan another page, then it displayes an error:
"No page was found in feeder. (-4401)"
The error dialog contains an OK button. When I press that button the error dialog and the Scanner dialog are dismissed. The problem is that in my code the dialog reponse I recieve is cancel.

<br><br>
Here is my code
<br><br>
dialogResult = session.Acquire(TwainUserInterfaceFlags.Show);

<br><br>
if (dialogResult != System.Windows.Forms.DialogResult.Cancel)
PostScan();
<br><br>
So my code never reaches the PostScan call because the response that is returned is Cancel, when it should be OK, because the scan did complete. Am I doing something wrong, have I missed a configuration that might suppress that error dialog.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, April 9, 2008 12:47:54 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Hello,

Since the return value is controlled by the Twain Driver's user interface, LEADTOOLS will not be able to detect it actually succeeded or not from this value.
However, if pages were scanned correctly, and your code handles the AcquirePage event, the event will be triggered for each page, and you can use that to detect that scanning occurred instead of using the return value.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.049 seconds.