posted to follow the thread
Main Topics
Browse All TopicsHi --
I'm hoping to find a way, using vfp5.0, to open and display a .bmp image in a form; to edit the image (i.e., cut/crop/resize), then save the image to a file for printing on a report.
I see possibilities when reading documentation (LoadPicture, SavePicture, OCX's) but don't have enough documentation to put is all together.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can't put this on hold until I get the rest of my reply out there that could be of help. ;)
I took a quick peek at an old PC here that I hooked back up that has VFP5 on it. Each VFP version ships with a set of ActiveX controls of which there is an imaging one.
If you're placing an OLE Container Control on a form from the Form Controls toolbar, after clicking on the Form, in the subsequent Insert Object dialog that comes up, change from the default choice of "Create New" and select "Insert Control" instead. Then scroll down in the very slowly populated list looking for the one named Microsoft ActiveX Image control (or any other you may see that looks like an image control or something you want to test).
One potential problem is with the use of scroll bars:
PRB: Using Scroll Box on ActiveX Image Control Causes Image Distortion and Scrollbar Problems
http://support.microsoft.c
It seems that using the Kodak control is more popular so there could very well be a Kodak Image Edit (Wang) control in that list.
This is a great article on handling images within VFP:
TEACH THE FOX HUNT PICTURES BETTER
http://www.foxite.com/arti
I believe MS used to include it with the OS software, but now under WinXP that is no longer the case:
Kodak Imaging for Windows Is Not Included with Windows XP
http://support.microsoft.c
You might, too, download the control that follows that is mentioned as part of a VFP6 example. There isn't any good reason it wouldn't work under VFP5:
Visual FoxPro 6.0 Sample: Selects a Printer by Using the Kodak Image Admin Control
http://support.microsoft.c
Another KB article utilizing the Kodak image control:
HOWTO: Print Multiple .tif Files from Visual FoxPro
http://support.microsoft.c
Other image related articles for further reading:
THUMBNAILS, ANYONE? (part 1 of 2)
http://www.foxite.com/arti
THUMBNAILS, ANYONE? (part 2 of 2)
http://www.foxite.com/arti
Also, there are two articles at VFUG ( http:/www.vfug.org/ ) in the Newsletters section on the Kodak control:
November 1998 Newsletter
Imaging ActiveX Controls
by Scott Hurlbert
June 2002 Newsletter
USING KodakImg CONTROLS IN VFP FORMS
by Elliott Myron
Carl, you have give me much to try.
In response to a 3/31 graphics-related post, you has mentioned "Image Viewer CP", which looked intriguing, so I downloaded the demo and ran setup. But when I place an OLE Container Control on a form, an loaded it with the ImageViewer2.ocx, vfp blew up and exited.
I tried opening the downloaded vfp example form, and it informed me that the ocx was not registered. So I registered it. But once again, when I tried the above, vfp exited with "fatal error".
I must be missing a step. Can you give me any advice in regard to using the Image Viewer ocx?
I failed at getting ImageViewer CP Demo to work on that PC. I think it's because, at least in my case, that the Windows version is only Windows 95 and the software's minimum requirement is Windows 98. Regardless, it failed when I tried to open the form from the project and, after I manually installed the OCX (ImageViewer2.ocx), it still failed when I ran the compiled project exe.
I don't have VFP5 on anything that is newer than Win95.
I don't get this control. They actually say it works all the way back to the first version of VFP.
Q: I have old VFP 3 application, Can I use it?
A: Yes.ImageViewer CP already fully testing in VFP 3.0, 5.0, 6.0 and 7.0.
I guess I'll float them a question and ask them why it always says it's not registered whether I trust their install or I manually install it. This makes no sense.
Here's the speedy response I got from the Viscom Software Support Team on our/your problem:
I checked the setup disk, the problem is our company release imageviewer version 2.3, our have not modify the sample code. the setup already register the ocx.
You can solve the problem as following
download setup disk again http://www.viscomsoft.com/
OR
open the form, Select Tools-Options
Select Controls -Activex controls -ImageViewerCP 2.3
drop the control into the form and rename the name property to imageviewer
Carl, thank you for all your help with this matter. I found a way to do what I needed to do without resorting to 3rd party software.
I've tried quite a number of 3rd party stuff over the last two years (I would love to find a good wav/mp3 ocx encoder/decoder) but have not yet encountered an ocx that actually worked -- except for Mabry which always works, but that's a group of professionals.
Again, thanks.
The control was an OCX that worked in VFP3 that I was running on a Pentium 133 with 32Mb RAM. We've come a long way since then (at least I have). The control started with the letters BW and that's all I know for the moment until I dig further into this. I'll let you know if I find something further.
It seems that BW was enough for me to remember to get Google to find it. ;)
BW is the initials for Binary Works.
http://www.binarywork.net/
It seems that this one, from what I quickly read, is still a decoder only.
Business Accounts
Answer for Membership
by: cbasozPosted on 2003-08-15 at 01:05:41ID: 9154791
Download GDI+ class from universalthread.com