Good Day to all of you. Can anybody please help me with my problem? I have a pageframe on my form and on page 1, I put there an Image box. Inluded in my dbf is a field "picture" (gen). How can I show It on my form?
Thanks in advance ang more power.
I don't believe the image control can't be directly bound to a General field - you'd need to extract the picture and change the Image's Picture property to use that file.
I am indeed privileged to be able to assist you with your problem. I have always desired to post a solution one day, but the questions that have been coming up are so difficult for me. But alas I have got the answer for one!
Instead of an imagecontrol, you would need to use an oleboundcontrol. The latter has a controlsource which you set to the General field containing the photo. If the picture is in a field called photo of a table called photoalbum, then you set the olebound control to a controlsource of [photoalbum.photo], braces excluded.
Did you find a way to make the image control work like Mike suggested (if so how?), or did you use the solution that castor2003 proposed in using an oleboundcontrol?
Slighthaze = NULL
[ul][li]FAQ184-2483 An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
I was wrong and Caster was right. There is no ControlSource for an Image.
What I did was to drag a General field from the data environment onto a form. I looked at the property sheet and saw that it had put the alias.fieldname into the ControlSource property.
Of course, I should have checked that it was an Image control. In fact it was an OLE bound control, as Castor correctly said.
Mike,
I know what you mean. Sometimes the "obvious" answer just isn't the right one, but I've almost always found that there is a some way to do it in VFP!
Hey Guys!
Thanks for showing interest to my problem(ex) but Here's what I did.
I save all the Pictures into my file under general field and when I made my form, I put the oleboundcontrol instead of the imagecontrol. Then on the sourcecontrol of it, I put my database file and it worked. Yes, I followed Mike's suggestion. I hope I answered all your questions guys. Good luck.
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.