Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / May 2007

Tip: Looking for answers? Try searching our database.

Add a button on Form to initialze scanner

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
VIDRO - 03 May 2007 20:43 GMT
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.Y.M. Wong-A-Ton - 04 May 2007 10:31 GMT
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.
---
S.Y.M. Wong-A-Ton

> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.