Home › Forums › TWAIN Classic › How to set Scan type as flatbed or feeder › Reply To: How to set Scan type as flatbed or feeder
Sorry, I won’t be able to provide code as I set very few Caps one by one. Instead I use EnableDsUiOnly to set up a profile of the scan that I want, pull all the settings out with CustomDsData.Get then when I want to run the scans I use CustomDsData.Set. I’ll typicaly only set fileformat, transfer methed and trasnfer count. After I check for EnableDsUiOnly support. Everything else I leave up to the vendor.
In a rough overview I’d say you want to set CAP_FEEDERENABLED to True, then check CAP_FEEDERLOADED.
If CAP_FEEDERLOADED = True (and you were able to set CAP_FEEDERENABLED = True). Then use whatever code you have that aquires from the ADF.
If CAP_FEEDERLOADED = False (or if you weren’t able to set CAP_FEEDERENABLED = True) then set CAP_FEEDERENABLED = False and use your other code.
Oh, and CAP_PAPERDETECTABLE is supported probably plays a role here too.
But I could have this all wrong as again, I don’t use twain the way you’re trying to use twain.
.