Canon MX450 series Scanner WS
WIA Driver
Use predefined settings
I get the error "An error occurred with the scanning driver." when trying to scan.
In the errorlog.txt:
2013-12-31 15:43:15.9902 An error occurred with the scanning driver. System.DivideByZeroException: Attempted to divide by zero.
at NAPS2.Scan.Wia.WiaApi.SetItemIntProperty(Item item, Int32 value, Int32 expectedMin, Int32 expectedMax, Int32 propid)
at NAPS2.Scan.Wia.WiaApi.SetupItem(Item item)
at NAPS2.Scan.Wia.WiaApi.GetImage()
at NAPS2.Scan.Wia.WiaScanDriver.<scan>d__0.MoveNext()</scan>
If I use the native WIA UI then it works - however that doesn't remember settings :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2014-01-01
I debugged the code, and it is getting that exception at:
I am also getting this error; I am using a Canon MX432 printer/scanner and get the error when I attempt to scan using the WIA Driver with predefined settings.
Here is my error:
2014-02-10 14:19:39.1421 An error occurred with the scanning driver. System.DivideByZeroException: Attempted to divide by zero.
at NAPS2.Scan.Wia.WiaApi.SetItemIntProperty(Item item, Int32 value, Int32 expectedMin, Int32 expectedMax, Int32 propid)
at NAPS2.Scan.Wia.WiaApi.SetupItem(Item item)
at NAPS2.Scan.Wia.WiaApi.GetImage()
at NAPS2.Scan.Wia.WiaScanDriver.d__0.MoveNext()
If you would be able to push out the fix for this, it would be greatly appreciated.
Thanks for all your hard work!
Shady.
PS: I just started using NAPS2 after getting frustrated with the crappy bundled scanning software and it is exactly what I wanted, it is a great piece of software!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Canon MX450 series Scanner WS
WIA Driver
Use predefined settings
I get the error "An error occurred with the scanning driver." when trying to scan.
In the errorlog.txt:
If I use the native WIA UI then it works - however that doesn't remember settings :(
I debugged the code, and it is getting that exception at:
The property was for Contrast.
The SubTypeDefault, SubTypeMin, SubTypeMax, SubTypeStep values are all 0.
I've currently resolved it by wrapping the above line in an if statement.
Last edit: Anonymous 2014-01-01
Hi Jacob,
Thanks for the detailed error report. I'll add a sanity check and include the fix in a future version of NAPS2.
Ben
Hi Ben,
I am also getting this error; I am using a Canon MX432 printer/scanner and get the error when I attempt to scan using the WIA Driver with predefined settings.
Here is my error:
If you would be able to push out the fix for this, it would be greatly appreciated.
Thanks for all your hard work!
Shady.
PS: I just started using NAPS2 after getting frustrated with the crappy bundled scanning software and it is exactly what I wanted, it is a great piece of software!