Home › Forums › TWAIN Classic › How to get TWCC_PAPERDOUBLEFEED and TWCC_PAPERJAM status
- This topic has 6 replies, 2 voices, and was last updated 16 years, 2 months ago by gabe.
- AuthorPosts
I think it is very important that source send the error status information (TWCC_PAPERDOUBLEFEED and TWCC_PAPERJAM) to user, so the user can process it correctly. But how to get these error status? Thanks for your help.
the triplet you’re looking for is DG_CONTROL / DAT_STATUS / MSG_GET
Thanks for your reply. But the conditioncode is zero by the triplet, so, maybe the scanner driver not support TWCC_PAPERJAM? It’s Canon 5010C.
@gabe wrote:
the triplet you’re looking for is DG_CONTROL / DAT_STATUS / MSG_GET
It is important that developer can discard image data when just double paper is feeded. If not, the application would consider the front side of first paper and the back side of second paper as one whole paper, because when scanner prompt double feeded, image has been sent to other object.
you only need to check the conditionCode when a triplet returns != success
Thanks. But the triplet returns success for canon 5010C(include 6080, 7580, 9080) while double paper feeded. At that time, GetStatus triplet return 0 as conditioncode, but scanner driver throws out a message box “Double paper feeded … “. Does not it mean that scanner driver can send such a event to the application?
@gabe wrote:you only need to check the conditionCode when a triplet returns != success
if your device’s driver tosses you a messagebox with error information but then returns rc=success to the triplet then it sounds like the driver is screwy.
have you looked around on the vendor’s site for alternative drivers? There are often other drivers (not sure in the case of Canon) that provide better support for twain than the ones that install automagically with windows or from the Cd by default.
.
- AuthorPosts