Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image scan control

Status
Not open for further replies.

junkmail

Programmer
Jan 7, 2001
134
US
I am using the kodak image scan control using foxpro and I can't seem to get the _pagedone event to work properly. I want to do a specific task after the page has been scanned but when I put the code in either the scandone or pagedone event the code does not execute. I am probably doing something wrong please help. Additionally I am wondering if there is a way to load the activex control in such a manner that the computer does not need to actually have the software on it.

Thanks
Frank
 
In case you haven't found a solution..
I had the same problem: the Image Scan Control PageDone event would never fire!
I emailed Microsoft and got a prompt answer but only to inform me about where to look for help concerning that problem (MSDN, TechNet etc..)
Anyway here is the trick which I found by inserting a Scan control in VB and checking its properties, methods & events in the Object Browser:
This info differs from the Help file in that it adds the argument: PageNumber (about which that file is extremly vague and ..unhelpful) to the procedure. You don't need to pass it anything; it simply returns the Page Number of the page you just scanned.
Here is an example:

Sub ImgScan1_PageDone(PageNumber)
iScannedPages = iScannedPages + 1
window.status = "Scanning Page no " & PageNumber & " completed"
End Sub

I hope this will help you!

Cheers,
j-p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top