BASIC/Visual Basic >> Kodak Scanning Control in VB6...I need help!
Posted by themaximus on 07:21:00 05-31-2003
How do you use the Kodak imaging control to scan a picture from your scanner? If anyone knows this, it would be great....
Posted by Smerdyakov on 22:49:00 05-31-2003
You honestly mean that there is no documentation for this control from a big company?
Posted by themaximus on 21:28:00 06-03-2003
Amazingly no. I found it in our OCX library. [addsig]
Posted by dxprog on 23:18:00 06-03-2003
He's right. There isn't any documentation for that thing at all. It comes with Windows. I think the scan control has a "StartScan" method that will start a new scan from a TWAIN device. But I'm not quite sure. [addsig]
Posted by dxprog on 06:44:00 06-04-2003
Okay, I've done some poking around with the code and this should get a scan for you:

(You'll need one Kodak Image Scan Control and a command button)

Private Command1_Click()

ImgScan1.OpenScanner
ImgScan1.ScanTo = FileOnly
ImgScan1.Image = App.Path & "\scan.tiff"
ImgScan1.StartScan
ImgScan1.CloseScanner

End Sub

This will bring up the devices TWAIN window and then save the picture to a TIFF file. For something more fancy you'll have to play around with thing. [addsig]
Posted by themaximus on 07:03:00 06-04-2003
Thanks dx. I wanted to create a program to possibly fax things... [addsig]
Posted by dxprog on 07:46:00 06-04-2003
I think that's one of the options in the ScanTo property. [addsig]
Posted by themaximus on 08:42:00 06-04-2003
One prob dx. It says "Invalid outside procedure." every time I try to run it. [addsig]