Home › Forums › TWAIN Classic › Cannot Set CAP_AUTOSCAN Capability to True
- This topic has 4 replies, 2 voices, and was last updated 15 years ago by xiaoyuan.
- AuthorPosts
I have a scanner which supports CAP_AUTOSCAN, but when I try to set this capability to true, the DSM_Entry routine returns error coce 1 and condition code 0.
Does anyone know what the causes this error?
Thanks.
@xiaoyuan wrote:
I have a scanner which supports CAP_AUTOSCAN, but when I try to set this capability to true, the DSM_Entry routine returns error coce 1 and condition code 0.
Does anyone know what the causes this error?
Thanks.
What’s the scanner and the driver version ?
Thanks, Thierry, for the reply.
My purpose is to create a generic application that can talk to any commercial scanner. Their drivers can be implemented following any TWAIN version.
I actually have a general question for any driver following TWAIN spec:
if calling DSM_Entry() gets return code 1 and condition code 0, what kind of erro does it mean? A driver implementation error or an error in my application?Thanks.
@xiaoyuan wrote:
A driver implementation error or an error in my application?
Hard to know, as it is vendor’s related behavior …
A good data source will give you a log file and enough feedback to be able to find if it’s an application error or not.
Some vendors expose capabilities because it is mandatory from TWAIN spec, but that doesn’t mean that you can change their value.
CAP_AUTOSCAN for example is a scanner specific capability controlling the behavior of the feeder so it could be read only.Got it. Thanks very much.
- AuthorPosts