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

ICAP_XFERMETH File + Duplex

Forums › TWAIN Classic › ICAP_XFERMETH File + Duplex

  • This topic has 5 replies, 3 voices, and was last updated 10 years, 8 months ago by cristiam.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 28, 2010 at 1:41 pm #22621 Reply
    cristiam
    Participant
    • Topics - 2
    • Replies - 2
    • Total Posts - 4

    Hi,
    I have a twain driver that is working with ICAP_XFERMETH file.
    My problem is that i need to scan more than 300 pages in duplex mode and my machine stay with out of memory.
    I want to set de ICAP_XFERMETH = TWSX_FILE to scan automaticaly to file.
    I tryed:


    rc = DSixfer(appid, srcds, TwDG.Image, TwDAT.ImageFileXfer, TwMSG.Get, ref hbitmap);

    But It’s saving only one file.
    Anybody may help me? ❓
    PS: Sorry my bad english 😳

    July 29, 2010 at 2:02 pm #25294 Reply
    peterp
    Participant
    • Topics - 0
    • Replies - 30
    • Total Posts - 30

    Many drivers use multi page TIFF files to save your result.

    Is the single file a multi page TIFF file? Does the scanner actually scan all 300 pages, or does it stop scanning after one page?

    July 29, 2010 at 2:04 pm #25295 Reply
    cristiam
    Participant
    • Topics - 2
    • Replies - 2
    • Total Posts - 4

    @peterp wrote:

    Many drivers use multi page TIFF files to save your result.

    Is the single file a multi page TIFF file? Does the scanner actually scan all 300 pages, or does it stop scanning after one page?

    It’s scanning all 300 pages but always save with the same filename.

    July 29, 2010 at 2:39 pm #25296 Reply
    peterp
    Participant
    • Topics - 0
    • Replies - 30
    • Total Posts - 30

    Could you please answer the other question.

    Is it a multi page TIFF file?

    If not, what kind of file is it?

    How big is the file?

    A multi page TIFF file is a single file that can contain hundreds of pages inside itself. I suspect that your scanner is producing a multi page TIFF file and that every page that was scanned is there inside it.

    July 29, 2010 at 5:08 pm #25297 Reply
    MSM
    Participant
    • Topics - 0
    • Replies - 29
    • Total Posts - 29

    To do file transfer you have to do following:
    1. Set ICAP_XFERMECH to TWSX_FILE
    2. Set ICAP_IMAGEFILEFORMAT to one of supported by the driver formats
    3. Enable DS
    4. After you get MSG_XFERREADY, use DG_CONTROL / DAT_SETUPFILEXFER / MSG_SET to setup file name and file format (driver may not accept file format different from one set in ICAP_IMAGEFILEFORMAT )
    5. Use DG_IMAGE / DAT_IMAGEFILEXFER / MSG_GET to do the transfer (Attantion!!! – last function parameter must be NULL)
    6. Use DG_CONTROL / DAT_PENDINGXFERS / MSG_ENDXFER to find if there are more image. If Yes goto 4, if not continue
    7. DisableDS

    If you use single image file format (BMP, JPG..) change the name of the file before every transfer ().
    If you use multi image file (TWFF_TIFFMULTI…) keep same file name

    July 29, 2010 at 7:51 pm #25298 Reply
    cristiam
    Participant
    • Topics - 2
    • Replies - 2
    • Total Posts - 4

    @MSM wrote:

    To do file transfer you have to do following:
    1. Set ICAP_XFERMECH to TWSX_FILE
    2. Set ICAP_IMAGEFILEFORMAT to one of supported by the driver formats
    3. Enable DS
    4. After you get MSG_XFERREADY, use DG_CONTROL / DAT_SETUPFILEXFER / MSG_SET to setup file name and file format (driver may not accept file format different from one set in ICAP_IMAGEFILEFORMAT )
    5. Use DG_IMAGE / DAT_IMAGEFILEXFER / MSG_GET to do the transfer (Attantion!!! – last function parameter must be NULL)
    6. Use DG_CONTROL / DAT_PENDINGXFERS / MSG_ENDXFER to find if there are more image. If Yes goto 4, if not continue
    7. DisableDS

    If you use single image file format (BMP, JPG..) change the name of the file before every transfer ().
    If you use multi image file (TWFF_TIFFMULTI…) keep same file name

    Thanks a lot.
    My error is that i was trying to set DG_CONTROL / DAT_SETUPFILEXFER / MSG_SET BEFORE the MSG_XFERREADY. 😳 😳

    Topic closed.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: ICAP_XFERMETH File + Duplex
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

  • Sports betting Bonus Code
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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.