Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use .jpeg files for OLEbound picture?
Message
 
To
28/01/2009 21:59:42
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01377782
Message ID:
01378001
Views:
21
>Borislav,
>
>>You wrote:
>>Do not store picture in the table, keep only path to it.
>>If your application is multyuser you could copy that picture to a folder where everybodey have access (some subfolder of your data folder)
>>Then you could use:
>>thisform.Image.Picture = ALLTRIM(Table.Field)
>>at every change of the record pointer of your table.
>
>(1) I understand that this technique -- setting Picture property to the name of a field that contains an
>absolute path -- can be used with picture objects on a report (undocumented VFP feature). Are you
>saying that I can do the same thing with the Picture property of image controls on a data entry form
>at runtime?
>

Yes.



>(2) I am trying to drag-and-drop a thumbnail image from a Web site to an image control on a VFP form
>at runtime. The Web site image is a JPG, and the image control's OLEDragOver method confirms
>the availability in oDataObject of the image file contents in DIB (device independent bitmap) format, which VFP
>supports. OLEDragDrop is triggered okay with DIB format -- 8 -- confirmed okay within the method,
>so I set memvar lqContents = oDataObject.GetData(8). At this point,
>VARTYPE(lqContents) = Q -- binary. However, when I then set This.PictureVal = lqContents, the image
>is not displayed. Is there some data conversion of lqContents that I have to do at this point in order to display
>the image?
>
>TIA,
>-mark

Not sure, I never did such a thing.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform