Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print image into report ?
Message
 
To
11/05/2007 06:33:53
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01224469
Message ID:
01224476
Views:
27
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform