Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tif images
Message
From
13/04/2004 10:25:16
 
 
To
03/04/2004 02:50:15
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00889613
Message ID:
00894406
Views:
20
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	&& for tif extension
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform