I need a .net DLL written in [url removed, login to view]
the DLL library has 2 functions:
1 - Get Available Devices : This will return a list of the scanners that can be detected.
? - Input Parameter (none)
? - Output Parameter (dataset containing all the scanners by ID, NAME etc.)
2 - Scan : this will perform a scan using the scanner specified?
? 1. Destination Path? - String
? 2. Format? String - ? ( Possible values : PDF, JPG,TIFF,BMP) those are all
? ? ? ? ? supported in WIA 2.0
? 3. Multipage (Boolean)
? 4. Total Pages Scanned (Output : decimal)
? 5. Error Message - (Output : String - this is to catch runtime errors and
? ? ? ? ? return them)
? 6. Quality - 0 to 100 possible values (integer)
? 7. Resolution - Integer
? 8. Device ID (this will be retrieved using the first function)
This function will run based on the boolean multipage
1. If multipage is true, the function will scan all the papers in the feeder? ? ? ?
? ? ? and either save as pdf or tiff to the destination file (parameter 1)? (so
? ? ? only those 2 formats are supported if? the multipage boolean is true)
? ? ? The function will return the total number of pages scanned.
? ? ? If no flatbed is detected , the scanner will populate the Error message
? ? ? output parameter with the message "Flat bed is not supported" and
? ? ? will set the total pages to 0. (it should NOT scan from the flatbed)
2. If multipage is false, the function will scan from the flatbed, and save the
? ? ? ? scanned image to the Destination path (parameter 1). The function will
? ? ? return the total page = 1 constant
in both cases the Format, Quality and Resolution are device properties that will need to be set before the scan command is issued.
All of the output variables (parameter 4 and 5) are byref parameters and not function returns. the function needs to have a void return type.
The functions should work in the background not GUI should be displayed.
Unfortunately time is of the essence, this needs to be completed in the next few days. Only contact me if you're immediately available to start the work.