Add a button on Form to initialze scanner

V

VIDRO

Is there an easy way to put a button on a form that would allow a form user
to be able to initialize a scanner connected the computer.
Scenario; scanning and attaching a resume to an InfoPath designed
Employment Application.
 
S

S.Y.M. Wong-A-Ton

There is a way, but it is *not* easy. A very cool scenario you've come up
with, I must say, but also very complicated to achieve. First you'll need
pretty advanced programming experience with .NET and then you can try using
the WIA library (I'd recommend using the WIA 2.0 library) if your scanner is
WIA-compliant to 'drive' the scanner from code. There is a helpful article on
'The Code Project' you can take a look at
(http://www.codeproject.com/dotnet/wiascriptingdotnet.asp).

Basically you write code to connect to the scanner, then issue a transfer
command, which will tell the scanner to start scanning. After the scanner is
done scanning, you'll get back an array of bytes (or you can save the file
locally if you wish), which you can convert to a base64 encoded string to be
placed in a picture control on the form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top