Reputation: 2677
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
Upvotes: 2
Views: 6011
Reputation: 354
Unlike many other libraries, Asprise C# VB.NET Scanning & Imaging SDK for TWAIN scanners works for both 64bit and 32bit applications. By default, almost all vendors supply 32bit TWAIN drivers only, thus most scanners will not show up in 64bit environments.
Asprise Scanning SDK is probably the only scanning library that works for both 64bit and 32bit applications thanks to our innovative patent pending technology and quality implementation.
Upvotes: 0
Reputation: 956
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).
Upvotes: 3
Reputation: 41
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.
Upvotes: 4
Reputation: 2587
Sorry, I did not looked the tags. Open source /free, best known TWAIN API is already mentioned by another user. http://www.codeproject.com/Articles/1376/NET-TWAIN-image-scanner
However the best paid TWAIN component for web and desktop environment is available at following URL by Atalasoft.
It is very flexible, fast and reliable.. I have used it for years.
Upvotes: 2
Reputation: 557
You could use either WIA (Windows Image Acquisition) or TWAIN via DllImport.
Here is an example of WIA: http://miljenkobarbir.com/using-a-scanner-without-dialogs-in-net/ That post contains plenty of comments to help you understand it.
Here is a Code Project article on using TWAIN: http://www.codeproject.com/Articles/1376/NET-TWAIN-image-scanner
Upvotes: 1