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 get TWCC_PAPERDOUBLEFEED and TWCC_PAPERJAM status

Forums › TWAIN Classic › How to get TWCC_PAPERDOUBLEFEED and TWCC_PAPERJAM status

  • This topic has 6 replies, 2 voices, and was last updated 13 years, 2 months ago by gabe.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 24, 2008 at 10:04 am #22280 Reply
    huanglb
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    I think it is very important that source send the error status information (TWCC_PAPERDOUBLEFEED and TWCC_PAPERJAM) to user, so the user can process it correctly. But how to get these error status? Thanks for your help.

    January 24, 2008 at 10:15 am #24323 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    the triplet you’re looking for is DG_CONTROL / DAT_STATUS / MSG_GET

    January 24, 2008 at 3:51 pm #24324 Reply
    huanglb
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    Thanks for your reply. But the conditioncode is zero by the triplet, so, maybe the scanner driver not support TWCC_PAPERJAM? It’s Canon 5010C.

    @gabe wrote:

    the triplet you’re looking for is DG_CONTROL / DAT_STATUS / MSG_GET

    January 24, 2008 at 4:04 pm #24325 Reply
    huanglb
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    It is important that developer can discard image data when just double paper is feeded. If not, the application would consider the front side of first paper and the back side of second paper as one whole paper, because when scanner prompt double feeded, image has been sent to other object.

    January 24, 2008 at 6:25 pm #24326 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    you only need to check the conditionCode when a triplet returns != success

    January 25, 2008 at 2:52 am #24327 Reply
    huanglb
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    Thanks. But the triplet returns success for canon 5010C(include 6080, 7580, 9080) while double paper feeded. At that time, GetStatus triplet return 0 as conditioncode, but scanner driver throws out a message box “Double paper feeded … “. Does not it mean that scanner driver can send such a event to the application?
    @gabe wrote:

    you only need to check the conditionCode when a triplet returns != success

    January 25, 2008 at 6:09 am #24328 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    if your device’s driver tosses you a messagebox with error information but then returns rc=success to the triplet then it sounds like the driver is screwy.

    have you looked around on the vendor’s site for alternative drivers? There are often other drivers (not sure in the case of Canon) that provide better support for twain than the ones that install automagically with windows or from the Cd by default.

    .

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: How to get TWCC_PAPERDOUBLEFEED and TWCC_PAPERJAM status
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

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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.