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 scan multiple pages in Flatbed scanner

Forums › TWAIN Classic › How to scan multiple pages in Flatbed scanner

  • This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by Catherine Sea.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 18, 2013 at 1:20 pm #22891 Reply
    YogaV
    Participant
    • Topics - 5
    • Replies - 4
    • Total Posts - 9

    Please give me the suggestion on how to scan multiple pages in flatbed scanner like HP scanjet G4010 model. Here is my scenario… Once scanned a first document the app will ask the user confirmation like “do u want to scan next page?”. I have done this task… but If user click ‘yes’ the scanner will start to scan next page.

    I have a function it will transfer the image from scanner to application. In order to do multi doc transfer I did a while loop on this function. But after the first document scanned, the returnCode has went to TWRC_FAILURE state instead of the state TWRC_XFERDONE. Because of this I am not able to scan the next document.

    function getImage(){
    m_returnCode = CallTwainProc(&m_AppId,&m_Source,DG_IMAGE,DAT_IMAGENATIVEXFER,MSG_GET,&hBitmap);
    switch(m_returnCode)
    {
    case TWRC_XFERDONE:
    g_vHandle.push_back(hBitmap);
    m_bSucess = TRUE;
    break;
    case TWRC_CANCEL:
    break;
    case TWRC_FAILURE:
    CancelTransfer();
    m_bSucess = FALSE;
    return FALSE;

    }
    }

    Thanks,
    Yoga V

    September 22, 2013 at 7:22 am #26014 Reply
    Catherine Sea
    Participant
    • Topics - 0
    • Replies - 59
    • Total Posts - 59

    Hi Yoga,

    Did you check the error message to see why it went to failure?

    Catherine Sea
    http://www.dynamsoft.com

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to scan multiple pages in Flatbed scanner
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

  • Girls of Desire: All babes in one place, crazy, art
  • 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.
  • 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.