Home › Forums › TWAIN Classic › How to catch end of scan on multi-page scanner? Kodak i-30
- This topic has 4 replies, 4 voices, and was last updated 17 years, 9 months ago by brianmcd.
- AuthorPosts
Hi, are there any way to determine, that last page was scanned?
It shows PendingXfers = -1 all the time, thanks.… you sure your i30 _always_ returns -1?
my i30 doesn’t do that…I have similar problem. My Fujitsu fi-4120C’s PendingXfers value always is 65535 (even after the last scanned page), at the same time, before the last page pass, the Twain Sample Source returns PendingXfers = 0. Any suggestions?
so if the sample works on your device but your code doesn’t….,
ok describe your transfer.
you execute OperationTriplets Image.ImageFileXfer.Get
you check the rc, its either , XferDone, Cancel or Failure
for the XferDone and Cancel results you end up executing
Control.PendingXfers.EndXfer, you check the pxfr.Count and if it is 0 then you go do something else and if its not 0 you loop. yours is never 0? is this where you come to an infinate loop? what happens here?have you tried anyone else code? does your code work anywhere else? Maybe this is odd bit o twain i just havent run up against, but when you say that the twain sample source works, i’m inclined to believe that your code is the source (no pun intended).
What source are you selecting? Is it the Kodak i30 or something else like Kofax VirtualReScan?
If it is something else it is possible that the other source doesn’t have a way to know that the scanner doesn’t have any paper in the feeder. In those situations all that can be done is to return “-1” and then generate an error when the next Transfer is initiated.
Are you checking for an error when the Transfer is initiated?
Brian
- AuthorPosts