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 up the TWAIN only scan the paper on the back

Forums › TWAIN Classic › How to set up the TWAIN only scan the paper on the back

  • This topic has 2 replies, 3 voices, and was last updated 8 years, 4 months ago by platomoda.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 15, 2012 at 8:50 am #22776 Reply
    Richard
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    Such as the title, I use Twain to do a project, do not use the Twain interface for scanning, but through the parameter settings to achieve.
    Obtain the value of CAP_DUPLEX I can determine whether the scanner supports duplex scanning.By setting CAP_DUPLEXENABLED I scanner to duplex scanning.
    How do I make the scanner scan only the back of the paper?

    if anyone have a solution?

    September 4, 2012 at 8:23 pm #25685 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    Not all scanners support rear only scanning as a negotiable item. One way around this is to do the following (this assumes that there’s no blank image detection):

    1) negotiate capabilities including duplexenabled
    2) call dat_userinterface / msg_enableds
    3) process msg_xferready
    4) call dat_pendingxfers / msg_endxfer (this discards the front image)
    5) transfer the rear image
    6) if tw_pendingxfers.count != 0, go to step 4
    7) call dat_userinterface / msg_disableds

    Alternatively, if the driver is TWAIN 2.0 or higher, then you might be able to use CAP_CAMERAENBLED to turn the front camera off in concert with DAT_FILESYSTEM / MSG_CHANGEDIRECTORY (to address the desired camera), or with CAP_CAMERASIDE (same idea, a little easier to use).

    September 13, 2012 at 11:20 pm #25686 Reply
    platomoda
    Participant
    • Topics - 0
    • Replies - 3
    • Total Posts - 3

    You can use TwainX ActiveX to achieve it. Get it now from http://www.file-expert.com/twainx-activex.htm

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How to set up the TWAIN only scan the paper on the back
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.