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

capability to find if document feeder is loaded

Forums › TWAIN Classic › capability to find if document feeder is loaded

  • This topic has 4 replies, 4 voices, and was last updated 6 years, 11 months ago by Kaij.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 25, 2013 at 10:15 am #22820 Reply
    sharp1257
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    Greetings!

    We have an application which is used to scan documents from TWAIN supported scanner. We are using TWAIN driver WIA driver
    When scanned using the application, we found that “TWRC_CANCEL” is returned after all pages are acquired from document feeder, though the scanning process is not cancelled.

    We are using third party library API’s to acquire images from scanner. The third party acquire API retuned “TWRC_CANCEL” error.

    “TWRC_CANCEL” error is received even when we used “TWACKER” application to scan from the same scanner.

    To identify if the user has actually cancelled the scanning process, we need to find if document feeder has any loaded pages(remaining pages may be there) . To do that we used the capability “CAP_FEEDERLOADED” .
    But our scanner is always returning TRUE even though paper is not available in the document feeder.

    Other Information:
    We installed TWAIN driver by using the below steps.
    1. Executed the installation steps of TWAIN driver provided by scanner vendor.
    2. Added this device from “Scanners and Cameras” in control panel.
    Now the device is listed in the application with the name as WIA-XX-TWAIN-XX…
    The error is retunred in Windows 7 and Windows 8 only.

    Please let us know if we can use any other capability to find if the document feeder is loaded.

    Thank you.

    February 5, 2013 at 9:20 pm #25808 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hi sharp1257.

    It’s OK to mention the actual name and model of your scanner, leaving it out just makes things harder, since many TWAIN problems are at least a little bit device-specific.

    There definitely are a few scanners that return TWRC_CANCEL (incorrectly) when the scan-job finishes. I’m thinking particularly of Brother MFC’s…
    If I remember correctly, this is also a problem when using the WIA drivers through TWAIN, I even have a vague memory that it might be more of a problem when going through WIA.

    And I’m not sure how well feederloaded works through WIA either… Hmm. I just opened my AV220C2 through “WIA-AV220C2”, and it returns CAP_FEEDERLOADED=TRUE, with the feeder totally empty. 🙄 Not a good sign.

    I don’t think you will get best results using the device “WIA-XX-TWAIN-XX”

    1. Executed the installation steps of TWAIN driver provided by scanner vendor.
    2. Added this device from “Scanners and Cameras” in control panel.
    Now the device is listed in the application with the name as WIA-XX-TWAIN-XX…
    The error is retunred in Windows 7 and Windows 8 only.

    Something is wrong here. If you are using a device with a name that starts with “WIA-” then you aren’t using a native TWAIN driver, you are going through WIA.
    And you don’t need to do anything in the Scanners & Cameras control panel, in order to use a TWAIN driver.

    Suggestion: Run a 3rd party TWAIN application like Twacker (from the TWAIN Working Group’s toolkit), or Irfanview (from http://www.irfanview.com).
    Look at the list of TWAIN devices in that application. If your scanner does not appear without a WIA-prefix, then you don’t yet have a working TWAIN driver. Troubleshoot, perhaps with help from the vendor.

    Once your scanner appears in the TWAIN device list without “WIA-” in front of it, switch your application to use that. Then you can query the TWAIN value ‘CAP_FEEDERLOADED’ to see if the feeder is loaded. Maybe when you switch to the native TWAIN driver it won’t return bogus TWRC_CANCEL, so you won’t need to work around it. No promises though 8)

    February 20, 2014 at 3:21 am #25809 Reply
    susannamoore
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    I’m involved in an application which is used to scan documents from TWAIN supported scanner. For my case, the scanner dialog closes after transferring each scanned image. To scan the next page requires re-starting the scanner, beginning with a whole new preview and re-entering all my scan settings. Can anyone help me to scan multiple images in my TWAIN scanning application?

    February 20, 2014 at 3:14 pm #25810 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hi Susanna, thanks for spamming our forum.
    I bet this really helps the reputation of RasterEdge with imaging professionals.
    Of course, we are talking about a company that doesn’t have a phone number 8)

    February 26, 2014 at 2:26 pm #25811 Reply
    Kaij
    Participant
    • Topics - 9
    • Replies - 132
    • Total Posts - 141

    @spike wrote:

    Hi Susanna, thanks for spamming our forum.
    I bet this really helps the reputation of RasterEdge with imaging professionals.
    Of course, we are talking about a company that doesn’t have a phone number 8)


    @Spike
    : That is a very valid commend. Thank you. I like it.

    Kaij

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: capability to find if document feeder is loaded
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.