This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, April 8, 2008 12:32:30 PM(UTC)
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.
#2
Posted
:
Wednesday, April 9, 2008 12:47:54 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
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.