Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE image insert
Message
 
 
À
16/06/2002 14:19:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00668975
Message ID:
00669199
Vues:
15
>The image isn't included in the tab order and doesn't appear when the form is running (unless there is already an image there). I want users to work from the forms and be able to insert an image into the tables from the form.

Your image field should be Binary Memo not general
yourdbf.photo = binary memo

Try this to store picture

npicture=Getfile()
picturefile=FILETOSTR(npicture)
replace yourdbf.photo With picturefile

to display picture

1. have a blank image on a specified drive and set image control picture property to this file (yourdrive.thisphoto.jpg)

picturefile=strTOfile(yourdbf.photo,'thisphoto.jpg',0)
thisform.image1.Picture='yourdrive.thisphoto.jpg'

Note form does not load rapidly, however, once loaded, works like a charm and quickly

RonL
Ronl
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform