Asif
Asif

Reputation: 2677

.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

Upvotes: 2

Views: 6011

Answers (5)

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.

enter image description here

  • Disclaimer: I work for Asprise

Upvotes: 0

RameezAli
RameezAli

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

Lavinia Tecson
Lavinia Tecson

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

Munawar
Munawar

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.

Atalasoft TWAIN Scanning SDK

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

Upvotes: 2

0_______0
0_______0

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

Related Questions