Link to home
Start Free TrialLog in
Avatar of Jagar
Jagar

asked on

Using a scanner without a control

 I am writing an ActiveX that can load and save pictures that is going to be used on the web.  I would to be able to scan a picture into the picture box control.  Unfortunately I don't know how to go about doing this.  I'm using VB5 to write the control.  Help would be greatly appreciated.
Avatar of MikeP090797
MikeP090797

If you know the scanner commands, you can access the port the scanner connected to directly by the CreateFile API. Then you need to send commands to the scanner that will scan the picture.
I had thought about suggesting this, however, how do you find out the name of the scanner port.  I understand that with CreateFile, you have to have a port name such as LPT1, COM1, COM2, etc...
Avatar of Jagar

ASKER

Sorry I need some more explaination.  All that I know for sure is that it will be a TWAIN scanner.  I need some sample code and more in depth explantion for the points.
Why won't you use an OCX? Someone has spent lot's of time to create such an OCX, so why to reinvent again
Avatar of Jagar

ASKER

I want to incomporate it directly into the FTP portion of the control that I'm creating.  Therefore I can't use a third party control, unless of course you know of one that will allow me to create a control with there control.  The two scanner OCXs I have won't let you do this, it's against the license agreement.  If you know of one that will allow me to do this resubmit the answer and then I consider giving you some points for it.
ASKER CERTIFIED SOLUTION
Avatar of andaluri
andaluri

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jagar

ASKER

The only reason I gave you a C is because it still gonna require a lot of work on my part readin gthrough it all the implementing it.  But From the quick check I just gave the site this should contain the anwser that I'm looking for.  Thanks again.
Bought This Question.