twain

WIA Twain support C#

北城余情 提交于 2019-12-06 04:10:26
问题 How can I use WIA and Twain in C#? The TWIAIN/C# example found at http://www.codeproject.com/KB/dotnet/twaindotnet.aspx Throws an exception at line 59 on TwainLib.cs "an attempt was made to load a program with an incorrect format." on Vista 64. I would use WIA but it does not have support for all of the devices I want to use. Is there a simple way to enable TWAIN support in WIA in C#? I know it can be done but I cannot find any documentation on the subject. I am not looking for a commercial

Simulate or Virtual Twain source for Twain development [closed]

对着背影说爱祢 提交于 2019-12-06 00:46:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . For developing a web based scan solution, I would love to test it on Windows or Mac without actually hooking up a scanner to my box. So is there a program/tool that emulates or gives me a virtual twain source with some default image data? 回答1: The Twain sample driver that comes along with the twain sample

Running a scanning app on a 64-bit machine via ClickOnce

◇◆丶佛笑我妖孽 提交于 2019-12-05 23:21:36
Okay, here's my setup. I have a c# app working perfectly on all 32-bit Windows XP-Vista-7 machine. I already have a verisign PFX to support the ClickOnce deployment and is using Atalasoft DotTwain 8.0 as the 3rd party scanner helper. When I publish my application, I choose "Any CPU" as the Platform target. When I try to make it run on a Windows 7 64-bit Home Premium, my application crashes after the installation. I tried re-publishing the work on a specific x64 platform but still failed. Any ideas on what i'm doing wrong here? thanks so much~! Choose 'x86' and I'll bet it will work; You most

Can one listen a twain (Maybe WIA) scanner?

一个人想着一个人 提交于 2019-12-05 10:11:02
I am evaluating VintaSoft .net control and Atalasoft DotTwain Image Capture. And I am very but very lost with the most of the definitions and keywords. So I am asking this because I think I am in Lala land. Is it possible to listen or have the scanner tell my app that there is a scanned image and I can process it? The idea is to have a winservice that is waiting for the scanner to scan something and when that happens process the image. I have only worked with the native interfaces to TWAIN and WIA, so I can't vouch for these other layers on top of them. However, with regards to TWAIN, some

TwainDotNet Scanning using TWAIN with BackgroundWorker

╄→尐↘猪︶ㄣ 提交于 2019-12-05 01:18:14
问题 Has anyone tried TwainDotNet for scanning with TWAIN API calls from .NET? Though it works well usually I've some issues with it when used along with WPF application using MVVM. Basically I'm calling Twain scanning functions from a Service, which in turn uses a BackgroundWorker. List<BitmapSource> bitmapSources = new List<BitmapSource>(); Twain twain = new Twain(new WpfWindowMessageHook(_window)); ScanSettings settings = new ScanSettings() { ShowTwainUI = false }; using (BackgroundWorker

Twain device (scanner) control in Java

拥有回忆 提交于 2019-12-04 23:44:27
I want to scan a number of papers through Java. I found the mm's computing twain library . When I run the example TwainExample.java at the site, I receive this error. uk.co.mmscomputing.device.twain.TwainIOException: Cannot load Twain Source Manager. On the other hand, almost the same code works with ImageJ as a plugin . Yet, when I used this code by itself I still receive the same exception. I wonder why this is not working. You can try download TWAINDSM.DLL for 64bit and put it in C:/windows/system32, or 32 if you have it. Find it on SourceForge Regards In the past I've used Morena library

WIA Twain support C#

岁酱吖の 提交于 2019-12-04 12:50:35
How can I use WIA and Twain in C#? The TWIAIN/C# example found at http://www.codeproject.com/KB/dotnet/twaindotnet.aspx Throws an exception at line 59 on TwainLib.cs "an attempt was made to load a program with an incorrect format." on Vista 64. I would use WIA but it does not have support for all of the devices I want to use. Is there a simple way to enable TWAIN support in WIA in C#? I know it can be done but I cannot find any documentation on the subject. I am not looking for a commercial product. I can figure out how to use WIA just fine - but its the fact that I cant enable TWIAN support

Web TWAIN scanning solution for ASP.Net? [closed]

*爱你&永不变心* 提交于 2019-12-04 10:23:36
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I know some of you will discourage scanning through a web page, unfortunately, it is a requirement. I want to view my options in the situation, and maybe, some of you may have already gone through this and had a workable solution. Problem is, we need to have a universal approach in scanning documents through the webpage without any external helper apps that does this for us. I know this is a tall

What is the state of TWAIN on the Macintosh today?

人走茶凉 提交于 2019-12-04 09:49:32
I'm currently working on a project where we want to interface with TWAIN scanners on both the PC (Windows) and the Macintosh. On Windows, we basically have everything squared away and the code works successfully with the vast majority of scanners. On Mac OS X, we also basically have everything working and with the main scanner we used to develop the application with works perfectly, but we're not having a ton of luck with other scanners. As a byproduct of development on this project, we have a fair number of scanners from various manufacturers on-hand to test with. The results vary wildly: The

How can I scan and transfer images from a document feeder asynchronously

萝らか妹 提交于 2019-12-04 07:23:52
Which parts of the communication with TWAIN can be put into another thread, e.g. a BackgroundWorker? Or: Is it possible to split the loop that handles the image transfer? Some scanner drivers scan all images before returning to the calling application which forces the application to handle all images at once. This results in e.g. OutOfMemoryException or weird behavior in my WPF application when suddenly all events (raised after every scanned image) have to be handled at once. Additionally the application hangs until the transfer was completed. I am using TwainDotNet: http://code.google.com/p