twain / twain-cs

A C# interface for TWAIN
168 stars 67 forks source link

No Twain driver found #39

Closed boobigbam closed 4 years ago

boobigbam commented 4 years ago

Hi I get a "There are no Twain drivers installed on this system" error from the FormScan.cs. Anyone who can hint me to why I get this error? Thanks

(I have run other Twain test projects and they do find my scanners, so I know I have Twain compatible scanners.) (I'm a casual programmer with basic knowledge in .net so I might be missing some simple point here:-)

makingbloke commented 4 years ago

Is it possible your app is running 64bit and you’ve got a 32bit driver installed? This will cause the issue you describe. Vice versa (32bit app and 64bit Twain is also the case)

Cheers

On Fri, 20 Mar 2020 at 12:05, boobigbam notifications@github.com wrote:

Hi Im get a "There are no Twain drivers installed on this system" error from the FormScan.cs. Anyone who can hint me to why I get this error? Thanks

(I have run other Twain test projects and they do find my scanners, so I know I have Twain compatible scanners.) (I'm a casual programmer with basic knowledge in .net so I might be missing some simple point here:-)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/twain/twain-cs/issues/39, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPMCPN47LRFN2YW63INBVDRINLZVANCNFSM4LQKORSA .

boobigbam commented 4 years ago

Thanks for your comment, im sure your are right about that. Could i ask if you got any hint as to how i solve that problem:-)

makingbloke commented 4 years ago

In your project settings in visual studio make the platform target x86.

The other more convoluted route I took is to write a small console app that does the scanner work. Compile this as 32bit then launch and talk to it from your main app (which can be compiled to any CPU).

Cheers

On Fri, 20 Mar 2020 at 12:56, boobigbam notifications@github.com wrote:

Thanks for your comment, im sure your are right about that. Could i ask if you got any hint as to how i solve that problem:-)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/twain/twain-cs/issues/39#issuecomment-601686004, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPMCPNNH7YKMTCKMBGNDBTRINRWDANCNFSM4LQKORSA .

boobigbam commented 4 years ago

Ahh super found that. Thanks very much

mlmcl62 commented 4 years ago

solved by a friendly helper