- status: open --> wont-fix
Everytime I try to scan I get an Unhandled exception error. I found that if I check the preview box it will scan successfully. But if I close out of the application it does not keep the preview box checked. I am using an epson DS30. Tested on both Windows 7 and windows 10, getting the same error.
Here is what I found in the iCopy.log
Connection established with EPSON DS-30. DeviceID: {6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0000
This scanner supports ADF
Starting acquisition
Bit Depth: 0
Brightness: 0
Contrast: 0
Resolution: 300
Intent: ColorIntent
Quality: 100
Scaling: 100
Copies: 1
Preview: False
UseADF: False
Duplex: False
Rotate Duplex: False
Multipage: False
Scan Output: Printer
Path:
Center: True
Trying to set WIA_DPS_DOCUMENT_HANDLING_SELECT to FLATBED
Exception thrown while setting WIA_DPS_DOCUMENT_HANDLING_SELECT
System.NullReferenceException: Object reference not set to an instance of an object.
at WIA.PropertyClass.set_Value(Object& pvResult)
at iCopy.Scanner.SetADF(ScanSettings settings)
Setting scan properties
Brightness set to 0 -> 0
Contrast set to 0 -> 0
Intent set to ColorIntent
Resolution set to 300
Set Horizontal Extent to its maximum value: 2550
Set Vertical Extent to: 3300
Horizontal extent 2550, Vertical extent 3300
Couldn't set Bits per Pixel set to 0. ERROR Value does not fall within the expected range.
Image count 0. Acquiring next image
WIA_DPS_DOCUMENT_HANDLING_STATUS: FEED_READY
Subitems count: 0
Acquisition threw the exception System.ArgumentException: Value does not fall within the expected range.
at WIA.CommonDialogClass.ShowTransfer(Item Item, String FormatID, Boolean CancelError)
at iCopy.Scanner.ScanNormal(ScanSettings settings)
Based on the error about Bits per pixel I did try to change "Froce Bit Depth for Color Mode" in settings to every setting that was available and it always throws that error when the preview button is NOT checked. The other issue with checking the preview button is I always have to select the paper size, the default is legal and we are using letter. 1.6.5 seems to be the most stable version for me, but it just needs a slight tweak to work for me.
JIT information
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
** Exception Text **
System.ArgumentException: Value does not fall within the expected range.
at WIA.CommonDialogClass.ShowTransfer(Item Item, String FormatID, Boolean CancelError)
at iCopy.Scanner.ScanNormal(ScanSettings settings)
at iCopy.Scanner.Scan(ScanSettings options)
at iCopy.appControl.Copy(ScanSettings options, Boolean openAfterAcquisition)
at iCopy.mainFrm.btnCopy_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)