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 set Scan type as flatbed or feeder

Forums › TWAIN Classic › How to set Scan type as flatbed or feeder

  • This topic has 5 replies, 2 voices, and was last updated 13 years, 8 months ago by gabe.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 2, 2007 at 1:16 pm #22127 Reply
    albertmaxim
    Participant
    • Topics - 2
    • Replies - 3
    • Total Posts - 5

    Hi,

    I need a small help. I want to set the scan type or paper source as either Flat bed or Feeder.

    The scan type or paper source are available while using the scanner. I want to those option through program.

    I am using twain_32.dll, with the help of twacker.exe i am writing code.

    Please help me in this regards.

    May 2, 2007 at 5:47 pm #23754 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    Take a look at CapOrderForWeb.pdf and look up the capabilities on the CAP_FEEDERENABLED node in the twain spec. It should give you an idea of the capabilities involved. Also know that depending on the hardware vendor your mileage may vary – example here

    CapOrderForWeb.PDF
    TWAIN2d.pdf

    .

    May 3, 2007 at 4:44 am #23755 Reply
    albertmaxim
    Participant
    • Topics - 2
    • Replies - 3
    • Total Posts - 5

    Hi,

    Thanks for the information.

    I need another help. I want to set the paper source either one of the following

    01. Flatbed
    02. Feeder
    03. Automatic
    04. Duplex

    I have a scanner having all the capabilities or any one. How i can set these capabilities using twain.

    Regards,

    Albert Maxim

    May 3, 2007 at 6:43 am #23756 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    Read those same two docs. CapOrderForWeb will give you a rough idea of the capabilites that are involved and provide some guidence to the order that the caps need to be set in, the spec will tell you the rest.

    Also in the twain spec near the end there is a section named “Capability Ordering” that has topics: ‘Duplex Control’ & ‘Feeder Control’

    May 3, 2007 at 11:11 am #23757 Reply
    albertmaxim
    Participant
    • Topics - 2
    • Replies - 3
    • Total Posts - 5

    Hi Gabe,

    Thanks.

    I solved almost all my issues. But i am having one small problem.

    I am using HP 5590 scan jet scanner for developing purpose. In that the paper source is as following
    01. Automatic
    02. Flatbed
    03. Feeder and
    04. Duplex

    I can able configure from application for all other paper source except for Automatic setting of paper source.

    Kindly help me in this regards. If possible please provide me some sample code snippets to complete my issue.

    Regards,
    Maxim

    May 3, 2007 at 12:05 pm #23758 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    Sorry, I won’t be able to provide code as I set very few Caps one by one. Instead I use EnableDsUiOnly to set up a profile of the scan that I want, pull all the settings out with CustomDsData.Get then when I want to run the scans I use CustomDsData.Set. I’ll typicaly only set fileformat, transfer methed and trasnfer count. After I check for EnableDsUiOnly support. Everything else I leave up to the vendor.

    In a rough overview I’d say you want to set CAP_FEEDERENABLED to True, then check CAP_FEEDERLOADED.
    If CAP_FEEDERLOADED = True (and you were able to set CAP_FEEDERENABLED = True). Then use whatever code you have that aquires from the ADF.

    If CAP_FEEDERLOADED = False (or if you weren’t able to set CAP_FEEDERENABLED = True) then set CAP_FEEDERENABLED = False and use your other code.

    Oh, and CAP_PAPERDETECTABLE is supported probably plays a role here too.

    But I could have this all wrong as again, I don’t use twain the way you’re trying to use twain.

    .

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: How to set Scan type as flatbed or feeder
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.