简体   繁体   中英

.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

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.

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

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.

Atalasoft TWAIN Scanning SDK

It is very flexible, fast and reliable.. I have used it for years.

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

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.

在此输入图像描述

  • Disclaimer: I work for Asprise

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM