What is the best way to figure out if the current selected scanner is ADF/Flatbed, or Both using Leadtools SDK 20?
I know I can use L_TwainGetCapability() and L_TwainSetCapability() with CAP_FEEDERENABLED to enable/disable the feeder if it is there, but how can I determine if it has feeder (maybe it is a flatbed only) or has a flatbed (maybe it is ADF only) or has both?
Thank you
Sam
I have not used LeadTools, but the check for a flatbed is redundant if the device does not have a feeder. It either has a feeder, or it doesn't have a feeder.
Remember that a TWAIN device could be a digital camera, and not a scanner -- thus a "flatbed" doesn't make sense.
The current way that I check is to simply see if
CAP_FEEDERENABLEDis supported is the following:Unfortunately, this is the roundabout way I've done this, but it should work. This is basically described in the TWAIN Specification for CAP_FEEDERENABLED (the version of the specification I use is 2.4).