Forums › TWAIN Classic › Please tell me how Duplex scanning with C# program? › Reply To: Please tell me how Duplex scanning with C# program?
- Topics - 9
- Replies - 583
- Total Posts - 592
Right. You may want to check the return and condition codes further on your calls. You also may want to consider checking querysupport before setting the cap.
But more directly, it looks like you abort the scan if Any of the caps you are setting return anything but success. When you step thru this with your device, where does it exit?
Could be that for your device it returns when setting xfercount (not likely but possible), duplexEnabled (more likely – specially since you don’t seem to be checking whether or how duplex is supported first, I suspect this call the most), or even feederEnabled.
I’m assuming that you are certain that the device supports duplex?
So step thru it, where does it return when intDuplex==1?, and what was the specific rc and cc?
And what are you using for a source?
I’m going to guess this is based on netmasters code from codeproject, did you adjust the constructor for a new cap or are you using his code as-is?