Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying Jpeg and BMP images files on a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00460052
Message ID:
00460073
Views:
11
>>What version of VFP are you using? With VFP 6, GIF and JPG support was added so no extra products were needed.
>>
>
>I am using VFP version 6.0 SP4. While I am sure it is supported, so far all I have been able tyo do is to dynamically display a BMP file. I have not found the control or syntax to display a JPG or GIF file. I just need to be pointed in the right direction.
>No, I am not storing the images in a general field in a table, ala TASTRADE. I am only storing the path\filename in that table. it is linked to the catalog table.

The Image control has native support for BMP, GIF and JPEG. To display it dynamcally, just change the Picture property of the image.

Ex.
_Screen.AddObject("oimage","image")
_Screen.oimage.Visible = .T.
_Screen.oimage.Height = 200
_Screen.oimage.Width = 200
_Screen.oimage.Picture = "C:\Program Files\Common Files\Microsoft Shared\Stationery\Balloon Party Invitation Bkgrd.jpg"

or in your case

_Screen.oimage.Picture = mytable.Location

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform