Sectors: Finance • Information Technoloy • Government • Healthcare • Industries • Education • (show all)
When CAP_DOUBLEFEEDDETECTION is set to anything but Disabled, it allows an Application to set how the source will respond to detecting a double feed.
TWDP_STOP – when a multi-feed is detected the driver must end the scanner session, returning TWCC_PAPERDOUBLEFEED for the an DAT_IMAGE XFER call that applied to the bad image.
TWDP_STOPANDWAIT – the driver/device will manage the multi-feed; the application is not notified; after the problem is fixed by the operator, image capture is continued as if no multi- feed occurred.
TWDP_SOUND – the driver/device will generate an audible alert when a multi-feed is detected
TWDP_DONOTIMPRINT – the device will not print on multi-fed documents. All combinations are valid, excluding TWDP_STOP and TWDP_STOPANDWAIT as only one of those can appear at a time. If the driver is asked for both, it may pick one and return TWRC_CHECKSTATUS.
The Application cannot ask for TWDP_STOP and TWDP_STOPANDWAIT at the same time.
After it receives TWCC_PAPERDOUBLEFEED, the Application can use DAT_PENDINGXFERS MSG_GET to see if it can resume the current session or if it must start a new one. If TWDP_STOPANDWAIT is in the list, then Application should not expect any errors to be returned if double-feed occurs.
Application cannot ask for TWDP_STOP and TWDP_STOPANDWAIT at the same time. If an Application sends TWDP_STOP and TWDP_STOPANDWAIT at the same time, then pick more suitable one and return TWRC_CHECKSTATUS.
If the Source UI and Indicators are disabled, or TWDP_STOP is in the list, then return TWRC_FAILURE TWCC_PAPERDOUBLEFEED.
Type: TW_UINT
Value after MSG_OPENDS: (may be remembered from a previous session)
After MSG_RESET/MSG_RESETALL: (selected by the data source writer)
Allowed Values: TWDP_STOP TWDP_STOPANDWAIT TWDP_SOUND TWDP_DONOTIMPRINT
MSG_GET TW_ARRAY
MSG_GETCURRENT TW_ARRAY
MSG_GETDEFAULT TW_ARRAY
MSG_SET TW_ONEVALUE TW_ARRAY
MSG_SETCONSTRAINT TW_ONEVALUE
TW_ARRAY
MSG_RESET TW_ARRAY
MSG_QUERYSUPPORT TW_ONEVALUE
None
Version 2.2
Where would you like to scan from? Scan in Web Apps Scan in Java Scan in .NET
The TWAIN Toolkit is distributed as is. The developer and distributors of the TWAIN Toolkit expressly disclaim all implied, express or statutory warranties including, without limitation, the implied warranties of merchantability, noninfringement of third party rights and fitness for a particular purpose. Neither the developers nor the distributors will be liable for damages, whether direct, indirect, special, incidental, or consequential, as a result of the reproduction, modification, distribution or other use of the TWAIN Toolkit.