Closed SilverSnake83 closed 5 years ago
Hello, @SilverSnake83 For first part of issue, check that you has updated to latest version (Saraff.Twain 1.0.27.606, Saraff.Twain.Aux 1.0.3.632) packages in all projects (a your scan app, a Saraff.Twain.Aux_MSIL.exe and a Saraff.Twain.Aux_x86.exe). Also, you must copy a Saraff.Twain.Aux_MSIL.exe and a Saraff.Twain.Aux_x86.exe (with confing file) to a your scan app location.
For second part of issue, try change type of value for a capability value:
twain.SetCap(TwCap.XResolution, 50f)
.
see General (not strongly typed) accessing to a capabilities. Also, you can write follow:
twain.Capabilities.XResolution.Set(100f)
,
see Strongly typed accessing to a capabilities
Apparently I resolved the first part of the issue by double checking every files and config files. My bad. The second problem was due to a missing directory in the SetupFileXferEvent event. I was puting an inexistant folder in the path of e.FileName. The error messages could have been more comprehensive but you helped me anyway, so thank you for your amazing work and help !
Hi
I have an issue with the saraff lib. On the last version (Saraff.Twain 1.0.27.606, Saraff.Twain.Aux 1.0.3.632) When I trie to launch a TwainExternalProcess.Execute I get an error when accessing to SourcesCount.
I tried the same code with version Saraff.Twain.Aux 1.0.2.534 and Saraff.Twain 1.0.22.544 and now it's working fine. The problem is once I try to do this:
It gives an error
And the resolution is in the list of twain.Capabilities.XResolution.Get()
I did manage to get the scan working for a breif amount of time, but now I always get that error.