I never used activex before, but I understand that I do need to use them to create this scanning and viewing app in VFP 6.0; However I have no clue what steps to take.
I want to take advantage of the Window 98 imagine software.
Can anyone help?
Hi Chris.
That is basically what I'am trying to do.
But preferably, I would want to be able to control the scanner and its function from VFP and adding command buttons to the main form for example to view , zoom, rotate images.
In VFP, select <Tools> from the main menu. Select <Options> from the ensuing drop-down menu. Click the Controls tab on the subsequent form. Click the <ActiveX Controls> option.
In the listbox, scroll down until you locate items whose name begin with Kodak. These are the Kodak imaging controls. Select these items and click <OK>. (If you dont want to have to repeat this process on future VFP sessions, click <Set As Default>.)
Now, open a form in design view. (MODIFY FORM MyFormName). Click the 'View Classes' button on the Form controls toolbar, it's the one with the books on it. (If you dont see this toolbar, select <View> from the menu and then select <Toolbars>. Locate the form controls toolbar, click it, then click <OK>.
After selecting the View Classes button, select <ActiveX Controls> from the pop up menu. Drag and drop the appropriate controls.
To learn more about these controls and their functionality, refer to the Imgocxd.hlp file on your computer. Enjoy. Jon Hawkins
jonscott8@yahoo.com
The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
At the time of making this post, the search facility is down, but there are various theads on storing and retrieving images which you could find with a keyword search
It is unlikely that you could use your scanner program as an automation server, so it would be best to run the software under FoxPro control, fired by a command button on your form.
Create a folder as a target for the scanners output, such as C:\Scans, and use .jpg file format.
You should use a WinAPI call which will not allow FoxPro to become active until the scanner program has terminated. Will post suitable code if required.
When FoxPro regains control, you need to transfer the files in C:\Scans to their permanent folders, such as C:\Images\Year2001\Month01. ADIR() will retrieve filenames etc and this data should be appended to a table containing fields for path, filename, description of scan, etc. Do not use a general field for image storage, but use file references instead. Delete the files in C:\Scans ready for the next scanning session.
Jon explained in his post how to find the Kodak Image Edit control. If you intend to use this, you will also require the Kodak Image Admin control should you want to print.
If image rotation is not that important to the project, you can use native FoxPro controls to view and print the images. FAQ184-218 explains how to simulate some of functionality of the Kodak Image Edit control.
You can build a resizeable scaling/scrolling full width/height image viewer from a standard form with just a few lines of code. You can also build a grid that will give you a thumbnails viewing facility, details of which you will find in an existing thread.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.