General information
Category:
Reports & Report designer
Hi Garry,
I do this often in my reports.. The syntax error is due to the '&' preceding the variable, making it look for another variable named whatever the bitmap filename is - which does not exist - leave it out or use the filename in qoutes.
If you are using VFP 6 you will not need to convert to a bmp and also get rid of the problem with VFP caching the image with the same name (probably is a good idea to clear the resouce as suggested by Nick).
>>Is it possible to get the bmp file name for a report from a variable?
>>
>>I have tried 'store "image1.bmp" to pict1, and in the file name
>>box of the image control putting &pict1. All I get is syntax error.
>>
>>I use Jpeg files in my application which have to be converted to bmps before they can be printed from a form.
>>
>>To do this I store them in the temp dir. and delete them after the report is printed.
>>
>>Problem No. 1! With modern computers the files stay in the cache memory and the previous images will appear on reports, even though they have been deleted.
>>
>>To get round this I keep count of images in a variable and use six different temp file names, when the sixth name is used, jumping back to name no. 1.
>>
>>It would be much simpler if the actual file name could be used and passed to the report via a variable.
>>
>>Any ideas?
>
>Garry, try to use CLEAR RESOURCES myPicture.bmp
>
>Nick
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only