TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

How to catch end of scan on multi-page scanner? Kodak i-30

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 14 years, 6 months ago by brianmcd.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 4, 2006 at 4:21 pm #21937 Reply
    Anonymous
    Participant
    • Topics - 60
    • Replies - 107
    • Total Posts - 167

    Hi, are there any way to determine, that last page was scanned?
    It shows PendingXfers = -1 all the time, thanks.

    June 13, 2006 at 12:10 pm #23363 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    … you sure your i30 _always_ returns -1?
    my i30 doesn’t do that…

    June 21, 2006 at 9:03 am #23364 Reply
    Agreed
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    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?

    June 21, 2006 at 8:27 pm #23365 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    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).

    July 6, 2006 at 12:09 am #23366 Reply
    brianmcd
    Participant
    • Topics - 0
    • Replies - 7
    • Total Posts - 7

    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

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How to catch end of scan on multi-page scanner? Kodak i-30
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.