How To Use TWAIN For Scanners
May 20, 2011So I got a working code for my scanner HP. it works perfectly
[Code]...
So I got a working code for my scanner HP. it works perfectly
[Code]...
I have been messing around with the scanning packages(WIA and TWAIN) and have gotten WIA to work, but not as intended. At first I used the common dialog to show a Image Aquisition Wizard, but that did not return desired results. Next was twain, but st managed to find was the same C# program over and over and over again, "TwainGUI". A program written by NETMaster on codeproject.What I would like to do is scan from the ADF and save immediately to the users working directory. The problem is I can't get WIA to keep scanning until the ADF is empty.
Psudo Code:
Start:
"Set scan settings"
[code]....
I am attempting to scan in multiple pages from an ADF on a variety if scanners (Mostly MFC's). I have been fighting this for about a week with not much success. I do have it working under twain, however, each page is a separate tif file. I would like to use WIA and have them combined. I found some code, but it was written in a previous version and generates an error when I run it in 2010.The error is :Value does not fall within the expected range. This is the first part of the code for selecting the wia device. It seems to be working ok.
[code]...
So - we are FED UP with our medical records packaging (document imaging) system and want to create a simple filing interface for our scanners to use in VB. Part of this deal is getting VB to interact with a TWAIN Driver.
There is some code out there for ASP.NET and C# - does anyone know of a VB.Net based code I could look at?
I have spent part of my day trying to recreate the ASP into VB but the calls are just different enough to get interesting.
I am making an application to scan with TWAIN. I can get to state 4 OK, and scan with the UI. But I need to hide the UI. When I do this the scanner does nothing. I believe it needs some capabilities set (like height and width). So I try to get the physical height and width so I can set them. Herein lies the problem. I get 18874402 back for the physical height and width. (neither can I get the units). I get RC=SUCCESS. I don't think it could be a signed/unsigned issue because what boundary is at 18 million +/- with whatever units? I tried some other code I found but that returns 0. I can't figure out what I am doing wrong. Here's the code:
[Code]...
anyone tried using twain in scanner.I wanted to store in my database
View 1 RepliesI would like to know if there is a built-in TWAIN Scanning library in .Net 4 to use it in VB.NET.
View 1 RepliesI have been working with TWAIN driver for few days. I have learnt how to connect to the scanner or get the working scanners connected to the machine. I am having a problem now, eventhough i get connected to the scanner, I am not able to set the capabilities from my application. The scanner scans using the capabilities that are set on it but not from my application. I have looked at the sample code given with twain pro but even that doesnt set the capabilities of the scanner. For example if the scanner is set to 300 dpi and I set 200dpi from my application, the scanner scans with 300 dpi. It gives me an error saying that the value given is out of range.
View 1 RepliesI am using a TwainPro4.dll for scanning purposes in my VB.net application framework v3.5.When i run my application i get the below exception,
LoaderLock was detected
Message: DLL 'C:WINDOWSassemblyGACPegasusImaging.WinForms.TwainPro44.0.22.0__80d669b8b606a2daPegasusImagi
[code].....
I am trying to perform Twain scanning using the twain_32.dll, but no luck. Whatever solutions I have got call the dll GUI.
I want to perform scanning by passing custom settings to the scanner for every scan. For eg. In duplex I want to scan the Front side in color & Back side in Grayscale. OR Scan every Alternate page as Color and B/W
The combination can be anything. I've tried & and succeeded using WIA but it limited me to a certain extent. how to proceed using TWAIN and without displaying the GUI. I am open to options where a communication to Twain Connection Manager is established & commands are passed.
I need to write a program that will capture a twain scan, then let the user input a file name and append a date and time stamp to the file. Afterwards, it should upload the file to a ftp share on our network. As a bonus, I would like it to log the transaction to a SQL server so we can verify the file was uploaded. The catch is, I have almost no programming experience. I have written a small program here and there, but never something that I had to call an outside source for besides SQL. We do have an in-house VB programmer, but he is to busy to do something like this. I wanted to give it a try myself before hiring someone else to do it since it sounds like such a simple program. I know how to layout the basic forms and I can probably figure out how to log the transaction, but I am looking for examples on twain scans and saving to ftp.
View 4 RepliesHow to implement Twain OCX in VB.NET project for scanning or loading pictures?
View 1 RepliesI have created programm to scan image from scanner using twain tool ,I want scan exatlly student card by this tool , but every time I make scan the image change size like from 300*400 to 600*800 so I want to make Dimensional of scanned image(card) in fixed Dimensional so i can use it to other purpose like use it in matlab how I can fixed Dimensional in vb.net from program so I do not allow user to change it from tool?
View 3 Replies