Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Scanning API for 64bit machine

Tags:

c#

twain

scanning

Is there a .Net scanning API available for 64bit machine to scan document or images from scanner? Can anyone give me sample code for this.

Thanks Asif

like image 853
Asif Avatar asked Feb 03 '26 12:02

Asif


2 Answers

We used leadtools sdk for a similar requirement. They do have a 64 bit version, but we actually found that many hardware manufacturers didn’t provide a 64 bit driver. Maybe that has changed since last time we checked. We used this Tutorial to get started.

like image 185
Lavinia Tecson Avatar answered Feb 05 '26 01:02

Lavinia Tecson


You most likely have an 'x86' (32-bit) reference in your project, for example DotTwain. 'Any CPU' means that the .NET framework will run it as 'x64' because you've told it anything is OK. Then it tries to load a reference, finds it's 32-bit and gives a 'BadImageFormatException' (usually).

like image 25
RameezAli Avatar answered Feb 05 '26 00:02

RameezAli