Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use .jpeg files for OLEbound picture?
Message
De
28/01/2009 21:59:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01377782
Message ID:
01377975
Vues:
15
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?

(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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform