Cyrus
Sat May 07 17:44:31 CDT 2005
Ook wrote:
> Jeff, I've done this before, and the trick I found was to simply rename the
> BMP each time you print. I create a BMP with a random name in the windows
> temp directory, and I think I use something like &lcBmpPath in the report
> itself, where lcBmpPath contains the full path and filename to the temp BMP
> file. It's been a while since I revisited this code, I can look at it
> tonight if you want to know the exact syntax I used.
>
> "Jeff Grippe" <jgrippe@hilldun.com> wrote in message
> news:117n4hs1kljkq61@news.supernews.com...
>
>>Sorry to post this in two places, I hope you see it in one of them.
>
> Thanks,
>
>>Jeff
>>
>>Eric,
>>
>>I tried this. The report "seems" to remember the first picture that it is
>>given to print and each time you print it or preview it the same picture
>
> is
>
>>shown.
>>
>>I did the following:
>>
>>I set code to output the form image to c:\curform.bmp
>>
>>My code to call the report is:
>>IF FILE("C:\CURFORM.BMP")
>> ERASE C:\CURFORM.BMP
>>ENDIF
>><code to create the curform.bmp file>
>>REPORT FORM MyReport TO PRINT PREVIEW
>>
>>The report always displays the same image regardless of what I do to the
>>form. This is in spite of the fact that the image has been deleted from
>
> the
>
>>disk and replaced with a different one.
>>
>>Do you know why this is happening?
>>
>>Thanks,
>>Jeff
>>
>>"Eric den Doop" <ericdendoop@xspamblockxfoxite.com> wrote in message
>>news:ODThw3kUFHA.2172@TK2MSFTNGP15.phx.gbl...
>>
>>>Just drop a Picture/Ole Bound control to your report and set "Picture
>>>from"
>>>to File and then specify the BMP. If you like, you can also specify a
>>>memvar
>>>or a UDF().
>>>--
>>>Eric den Doop
>>>www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
>>>
>>>"Jeff Grippe" <jgrippe@hilldun.com> wrote in message
>>>news:117moeb22n11m86@news.supernews.com...
>>>
>>>>Hello all and thanks in advance for the help.
>>>>
>>>>How do you print a bitmap where the bitmap that you will be printing is
>>>>to be decided at runtime? Can you use the VFP report writer? Is there
>>>>another way? Thanks.
>>>>
>>>>Jeff
>>>>
>>>
>>>
>>
>
>
You can also do a clear resource before running the report and it will
look at the actual file each time.
--
Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com