Search code examples
c#scanningtwain

.NET Scanning API for 64bit machine


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


Solution

  • 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).