Home › Forums › TWAIN Classic › Capability of ICAP_SUPPORTEDSIZES unsupported.
- This topic has 3 replies, 3 voices, and was last updated 12 years, 10 months ago by willzith.
- AuthorPosts
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 ?
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..
I reinstall the scanner driver and restart windows then it works. I can get page size list now. thanks gabe.
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]
- AuthorPosts