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

Capability of ICAP_SUPPORTEDSIZES unsupported.

Forums › TWAIN Classic › Capability of ICAP_SUPPORTEDSIZES unsupported.

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 10 months ago by willzith.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 3, 2009 at 5:55 am #22470 Reply
    cn_eric
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    I want to get supported page sizes. here is my code:


    if(DSOpen())
    {
    TW_CAPABILITY twCap;
    memset(&twCap, 0x00, sizeof(twCap));
    twCap.Cap = ICAP_SUPPORTEDSIZES;
    twCap.ConType = twCap;
    twCap.hContainer = NULL;

    if(CallTwainProc(&m_AppId,&m_Source,DG_CONTROL,DAT_CAPABILITY,MSG_GET,(TW_MEMREF)&twCap))
    {
    return TRUE;
    }
    }

    It always returns TWCC_BADCAP , I check the manual and find it means that the ICAP_SUPPORTEDSIZES is not supported by the device.

    Is there anyone here can tell me why ?

    the scanner I develop against is hp scanjet 5590 , is it compatibales with TWAIN ?

    March 3, 2009 at 7:21 am #24823 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    what driver are you using? I have found that the hp5590 is a decent enough device once you install and use the alternate driver.
    Usually you’ll find it on the cd or on their site as either the ‘Commercial driver’ or the ‘minimal driver’. The default driver isn’t interesting of you want to code against it.

    .

    March 5, 2009 at 2:10 am #24824 Reply
    cn_eric
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    I reinstall the scanner driver and restart windows then it works. I can get page size list now. thanks gabe.

    June 3, 2011 at 6:39 am #24825 Reply
    willzith
    Participant
    • Topics - 4
    • Replies - 2
    • Total Posts - 6

    I had same problem, reinstall the scanner driver and restart windows but it not works 🙁 (EPSON scanner).

    My scanner also support adjust values: Saturation, Color balance…
    Image values: Mirror image, reverse negative/positive image, compression…

    But in Twain spec has nothing about these things.
    How can I set value for these things in my Twain app.

    Please help![/b]

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Capability of ICAP_SUPPORTEDSIZES unsupported.
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

  • TWAIN for dental imaging integration
  • 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.