Forums › TWAIN Classic › Is TWAIN Still alive ? › Reply To: Is TWAIN Still alive ?
Hi,
I’m writing a win32C++ twain application to operate EPSON 10000XL flatbed scanner. I have been able to open and scan images successfully. But I’m struggling to change the capabilities.
Specillay I want to set the following two boolean capabilities to TRUE.
ICAP_AUTOMATICBORDERDETECTION
ICAP_AUTOMATICROTATE
I tried it in the following manner.
– Load the TWAIN DLL and collect DSM Entry Proc.
– Send triplet (DG_CONTROL,DAT_PARENT,MSG_OPENDSM):
received success.
– Send triplet (DG_CONTROL,DAT_IDENTITY,MSG_USERSELECT):
received success. Selected 10000XL.
– Send triplet (DG_CONTROL,DAT_IDENTITY,MSG_OPENDS):
received success.
– Send triplet (DG_CONTROL,DAT_CAPABILITY,MSG_SET):
twCapability.Cap = CAP_XFERCOUNT;
twCapability.ConType = TWON_ONEVALUE;
value is set to 1
received success.
– Send triplet (DG_CONTROL,DAT_CAPABILITY,MSG_SET):
twCapability.Cap = ICAP_UNDEFINEDIMAGESIZE;
twCapability.ConType = TWON_ONEVALUE;
value is set to TRUE (1)
received failure
– Send triplet (DG_CONTROL,DAT_CAPABILITY,MSG_SET):
twCapability.Cap = ICAP_AUTOMATICBORDERDETECTION;
twCapability.ConType = TWON_ONEVALUE;
value is set to TRUE (1)
received failure
Please help me to find out what causes my last two calls to fail. Specifiacally I’m concerned about EPSON 10000XL. Has anyone worked with that scanner using twain?? I wonder whether the twain interface is properly implemented for EPSON 10000XL.
Thanking you in advance.
Best Regards,
FF