Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable images in a report
Message
From
08/03/2000 09:51:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
07/03/2000 00:09:41
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00342464
Message ID:
00343248
Views:
29
>>I am still looking for more variability since the current system binds the images into the executable making it a bear to change.
>
>Lemme expund on that. You could store all the bmps in a table, using FileToStr() to get them in a memo field, and StrToFile() to get them out. Then, just point teh report to a file name, and StrToFile() to the same filename. You could build the DBF into the EXE if you want at that point.

I'm not all that sure it would work. VFP caches images, so it may not notice at all that you replaced the file on disk. It can be forced to reload the picture using Clear Resources command, but then it may be an overkill - it would reload all other pictures currently in use, as well.

General fields may be a major PITA if you try to keep them in a table, specially regarding maintenance, but the 'create cursor, add a general field and stuff whatever you need in a general field' works like a charm, even in VFP5. OK, you're using more disk space, but it's returned in the end, and it's not expensive as it once was.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform