Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print image into report ?
Message
 
À
11/05/2007 06:33:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01224469
Message ID:
01224476
Vues:
26
>My image files are included into my project. I would like to add a different image into a report. I guess I need to add an OLE/picture control into my report. But that control need ControlSource with existing file on disk. Instead of that, is it possible to use a variable containing the name (withtout path) of my image (the one included in my project)? Otherwise, how can I do that?

You must first save that image on disk and then use it as ControlSource in that OLE bound control:
lcFileName = ADDBS(SYS(2023))+FORCEEXT(SYS(2015),[PICTURE EXTENTION HERE])
STRTOFILE(FILETOSTR([ThePictrureInEXE.EXT]), lcFileName)

*** use m.lcFileName as ControlSource in REPORT
REPORT FORM ....
ERASE (m.lcFileName)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform