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

Multi Scanning

Forums › TWAIN Classic › Multi Scanning

  • This topic has 7 replies, 7 voices, and was last updated 13 years, 7 months ago by jnsoneji.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • June 3, 2005 at 6:22 pm #21786 Reply
    m2004mb
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hi Guys,

    I am new to twain. I need to develop multi scanning support (ADF – Automatic Document Feeder) from application.

    Does anyone have sample code written in C++? Could anyone help me on this?

    Thanks in Advance
    Matt

    June 4, 2005 at 12:46 pm #23088 Reply
    NARP
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    I’m new to C++, but I’ve done a bit of TWAIN programming. If you haven’t seen it, take a look at http://www.codeproject.com/audio/twaintest.asp, which is a TWAIN wrapper class in C++. I can’t give you precise code, but when you get the idea of setting properties, you just have to set the ENABLEFEEDER property and scan normally.

    -NARP

    June 4, 2005 at 6:34 pm #23089 Reply
    m2004mb
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    NARP,

    Thanks for the link.

    I have achieved the single scanning from c++.

    I am looking for multi page scan support from the application.

    If someone could help me on this? c++ program would be great if someone has it.

    Thanks
    Matt.

    June 13, 2005 at 4:07 pm #23090 Reply
    JonHarju
    Participant
    • Topics - 0
    • Replies - 13
    • Total Posts - 13

    Hello Matt,

    What exactly is it that you are having problems with? The sample code from the TWAIN website achieves multipage scanning… are you trying to do something complicated?

    If you are already scanning single pages without trouble, then simply add a loop that inspects the value of PendingXfers.Count after each call to DAT_PENDINGXFERS/MSG_ENDXFER call.

    ie:
    do
    {
    GetImageInfo();
    GetMemoryTransfer();
    }while(PendingXfers.Count != 0);

    Best Regards,
    Jon Harju

    December 7, 2005 at 10:29 am #23091 Reply
    Anonymous
    Participant
    • Topics - 60
    • Replies - 107
    • Total Posts - 167

    Can I scan with FILETRANSFER mode to multipage TIFF?

    When I use loop with “DG_IMAGE/DAT_IMAGEFILEXFER/MSG_GET”
    while “DG_CONTROL/DAT_PENDINGXFERS/MSG_ENDXFER” count!=0
    it scans from ADF properly but output TIFF is overriden every page…

    any hints? Thanks

    April 21, 2006 at 7:07 am #23092 Reply
    Kaij
    Participant
    • Topics - 9
    • Replies - 132
    • Total Posts - 141

    At FILETRANSFER MODE the DS is responsible for the file creation. Usually you can not control it from the APP side. Ask the DS vendor.

    Kaij

    April 21, 2006 at 11:39 pm #23093 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    @tomlin wrote:

    Can I scan with FILETRANSFER mode to multipage TIFF?

    depends on your device.
    execute ‘Icap_ImageFileFormat /Get’ to determine if tiffMultipage is supported by your device,

    @tomlin wrote:

    but output TIFF is overriden every page…
    any hints?

    are you executing ‘SetupFileTransfer / Set’ and passing in a different filename each time, just before you execute ‘ImageTransfer / Get’ in that loop?

    June 29, 2007 at 9:41 am #23094 Reply
    jnsoneji
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    dear friends, it works with all scanners but problems iwth fujitsu scanner as i get only one page as result, any reference document to be seen.
    thanks,

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Multi Scanning
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

  • Big Ass Photos – Free Huge Butt Porn, Big Booty Pics
  • 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.