Home › Forums › TWAIN Classic › How to set Scan type as flatbed or feeder
- This topic has 5 replies, 2 voices, and was last updated 16 years, 11 months ago by gabe.
- AuthorPosts
Hi,
I need a small help. I want to set the scan type or paper source as either Flat bed or Feeder.
The scan type or paper source are available while using the scanner. I want to those option through program.
I am using twain_32.dll, with the help of twacker.exe i am writing code.
Please help me in this regards.
Take a look at CapOrderForWeb.pdf and look up the capabilities on the CAP_FEEDERENABLED node in the twain spec. It should give you an idea of the capabilities involved. Also know that depending on the hardware vendor your mileage may vary – example here
CapOrderForWeb.PDF
TWAIN2d.pdf.
Hi,
Thanks for the information.
I need another help. I want to set the paper source either one of the following
01. Flatbed
02. Feeder
03. Automatic
04. DuplexI have a scanner having all the capabilities or any one. How i can set these capabilities using twain.
Regards,
Albert Maxim
Read those same two docs. CapOrderForWeb will give you a rough idea of the capabilites that are involved and provide some guidence to the order that the caps need to be set in, the spec will tell you the rest.
Also in the twain spec near the end there is a section named “Capability Ordering” that has topics: ‘Duplex Control’ & ‘Feeder Control’
Hi Gabe,
Thanks.
I solved almost all my issues. But i am having one small problem.
I am using HP 5590 scan jet scanner for developing purpose. In that the paper source is as following
01. Automatic
02. Flatbed
03. Feeder and
04. DuplexI can able configure from application for all other paper source except for Automatic setting of paper source.
Kindly help me in this regards. If possible please provide me some sample code snippets to complete my issue.
Regards,
MaximSorry, 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.
.
- AuthorPosts