twain

Interfacing with the end-user's scanner from a webapp (web/scanner integration)

筅森魡賤 提交于 2019-11-30 03:05:35
Consider the following scanning procedure in a typical document handling webapp: The user scans a document using a scanner connected to his/her computer The scanned image is saved locally on the user's computer as a BMP/JPG/TIF/PNG file The user hits a file upload "Browse.." button in the web application The user is presented with a file dialog which he/she uses to locate the scanned image The user hits "Upload image" and the scanned image is uploaded to the server where it is stored This process is quite complicated and I'd like to reduce the number of steps in order to make the process more

Using a scanner without dialogs in C#

房东的猫 提交于 2019-11-29 01:10:36
问题 I'm building a .Net 4.0 application for remote control of a scanner device. I have tried both TWAIN and WIA libraries, but I have the same problem. Scanning images without scanner selection and scanning settings dialogs . I found a useful article on WIA scripting in .Net, and modified it to this: private Image Scan(string deviceName) { WiaClass wiaManager = null; // WIA manager COM object CollectionClass wiaDevs = null; // WIA devices collection COM object ItemClass wiaRoot = null; // WIA

Interfacing with the end-user's scanner from a webapp (web/scanner integration)

喜你入骨 提交于 2019-11-29 00:10:07
问题 Consider the following scanning procedure in a typical document handling webapp: The user scans a document using a scanner connected to his/her computer The scanned image is saved locally on the user's computer as a BMP/JPG/TIF/PNG file The user hits a file upload "Browse.." button in the web application The user is presented with a file dialog which he/she uses to locate the scanned image The user hits "Upload image" and the scanned image is uploaded to the server where it is stored This

Twain question: is it possible to scan just one document from feeder?

孤街醉人 提交于 2019-11-28 19:51:58
I am playing with the code from http://www.codeproject.com/KB/dotnet/twaindotnet.aspx I am having a problem because twain returns control only after all documents in feeder are scanned. This leads to high memory usage if I scan 20 or more documents. I thought of scanning just one document at a time from the feeder and saving the image and calling the api again in a loop. I am setting cap_xfercount to 1 but this does not seem to help: TwCapability cap = new TwCapability(TwCap.XferCount, 1); rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, cap); What do I need to do to scan

.NET Scanning API [closed]

自闭症网瘾萝莉.ら 提交于 2019-11-28 16:12:27
Is there any free or commercial component written in .NET (no COM interop) that will work with most twain scanners? Jedi Master Spooky In my company we use Pegasus . It's great. Luke Quinane TwainDotNet I've just wrapped up the code from Thomas Scheidegger's article ( CodeProject: .NET TWAIN image scanning ) into a Google code project: http://code.google.com/p/twaindotnet/ I've cleaned up the API a bit and added WPF support, so check it out. :) Matt Hamilton Microsoft have an API all about scanning. It's called Windows Image Acquisition and you can read a great Coding4Fun article about it by

Is it possible to have flash access a generic TWAIN Scanner?

巧了我就是萌 提交于 2019-11-28 11:59:45
问题 Is it possible to have flash access a generic twain scanner from my web-application, save the file and upload it into my application? I have done some searching through google but wasn't able to find to much detail in this. Is there any pre-made solutions, Paid / Free (ideally). If Flash isn't the best route to go, would Java Applet be better, if so, is their a solution already built? Any thoughts on this would be greatly appreciated. Cheers. 回答1: I'm not sure this is an answer your looking

C# TWAIN interaction

纵然是瞬间 提交于 2019-11-28 11:25:59
I'm trying to set up a C# application which uses TWAIN example from code project This works fine except that I need to cast Form to IMessageFilter and call IMessageFilter.PreFilterMessage() to catch TWAIN callbacks. Also I need to start this filtering by calling Application.AddMessageFilter(); Is there a way to do same thing in WPF Window? (To add message filter and catch TWAIN callbacks). Another totally high level question: Does anybody know about alternative C# TWAIN libraries\wrappers? Thank you. csgero You could try it with the ComponentDispatcher.ThreadFilterMessage event. As far as I

Twain question: is it possible to scan just one document from feeder?

我是研究僧i 提交于 2019-11-27 12:33:06
问题 I am playing with the code from http://www.codeproject.com/KB/dotnet/twaindotnet.aspx I am having a problem because twain returns control only after all documents in feeder are scanned. This leads to high memory usage if I scan 20 or more documents. I thought of scanning just one document at a time from the feeder and saving the image and calling the api again in a loop. I am setting cap_xfercount to 1 but this does not seem to help: TwCapability cap = new TwCapability(TwCap.XferCount, 1); rc

.NET Scanning API [closed]

青春壹個敷衍的年華 提交于 2019-11-27 09:36:45
问题 Is there any free or commercial component written in .NET (no COM interop) that will work with most twain scanners? 回答1: In my company we use Pegasus. It's great. 回答2: TwainDotNet I've just wrapped up the code from Thomas Scheidegger's article (CodeProject: .NET TWAIN image scanning) into a Google code project: http://code.google.com/p/twaindotnet/ I've cleaned up the API a bit and added WPF support, so check it out. :) 回答3: Microsoft have an API all about scanning. It's called Windows Image

C# TWAIN interaction

感情迁移 提交于 2019-11-27 06:13:13
问题 I'm trying to set up a C# application which uses TWAIN example from code project This works fine except that I need to cast Form to IMessageFilter and call IMessageFilter.PreFilterMessage() to catch TWAIN callbacks. Also I need to start this filtering by calling Application.AddMessageFilter(); Is there a way to do same thing in WPF Window? (To add message filter and catch TWAIN callbacks). Another totally high level question: Does anybody know about alternative C# TWAIN libraries\wrappers?