Hello Reza,
I have been using the Kodac control successfully.
I have one little issue though.
After the scanning of the file is finished the application return to Windows Explorer instead of my application.
I would like the control to return to my application instead of Windows Explorer. Just like a modal form.
When I click the button a dialog box from the Canon DR-9080C appears with configuration information such as Mode, Page Size, Dots per inch, Brightness,
contrast, Margin, Scanning Side, Feeding Options, Scanning Options.
This Dialog box has a Scan button on it. When I click the Scanner start scanning the pages.
The problem is that once is finish it return control to Windows Explorer. But I want to return control to my foxpro application.
Here is the code of the click event of my scan button on a form:
LOCAL lcFileName
lcFileName = ALLTRIM(Thisform.txtid.Value)
gcPath = "O:\"+lcFileName
Thisform.olescan.fileType = 1
lcFileName = gcPath+"\"+lcFileName+".tif"
Thisform.olescan.image = lcFileName
Thisform.olescan.multiPage = .t.
Thisform.olescan.pageoption = 1
thisform.olescan.scanto = 2
thisform.olescan.scroll = .F.
thisform.olescan.showsetupbeforeScan = .t.
thisform.olescan.stopscanbox = .f.
thisform.olescan.openscanner
thisform.olescan.startScan
thisform.olescan.closeScanner
How do you return control to my foxpro form once the scanning is finished?.
Thanks,
Sergio Ortiz