WIA - how to check scanner if adf(feeder) capable?

674 Views Asked by At

im using WIA scanner library in my code. i succeed to do the scans with the static scan type:

WiaDev.Properties["3088"].set_Value(1);

now i need to detect if the scanner capable of Duplex/Feeder so the users be able to select the scan type according to their needs. to do that i need a scan combobox with 1.Flatbed 2.Feeder 3.Feeder(DUPLEX) options and i remove static input type from my code.

im looking for a way to check attached scanner have a feeder tray and is it ADF capable or not in c#?

1

There are 1 best solutions below

1
hijinxbassist On BEST ANSWER

From the documentation, which can be found here

WIA_DPS_DOCUMENT_HANDLING_CAPABILITIES ScannerDeviceDocumentHandlingCapabilities Contains the capabilities of the scanner. The minidriver creates and maintains this property. An application reads this property to determine whether the scanner has a flatbed, document feeder, or duplexer installed. This property is also used to further define the installed features.

and

The following table describes the constants that are valid with Windows XP or later.

DETECT_FEED The scanner can detect a document in the feeder.

DETECT_FLAT The scanner can detect a document on the flatbed platen.

DETECT_SCAN The scanner can detect a document in the feeder only by scanning.

DUP The scanner has a duplexer.

FEED The scanner has an automatic document handler installed.

FLAT The scanner has a flatbed platen.