Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic image in .FRXs?

Status
Not open for further replies.

mcoupal

Technical User
Jul 9, 2001
61
US
I have a report in Fox 3 that's used by several users and is supposed to show their signature (a .bmp file) at the bottom. Currently, I am using one report with several .bmps on top of each other, displaying only the correct one. However, this is very difficult to maintain.

Is it possible to use one Image field on the report and make it reference different .bmp files based on a variable at runtime?

Or is there a better method? Maintaining several different reports with a different signature .bmp would be very difficult to maintain. I would prefer to avoid using a rich text field for storing the image.
 
Hi mcoupal,

you can store your filename in a variable
Es. myPicture="c:\pict.jpg"

Then in the controlsource of oleobject in your report put

&myPicture Andrea C.P.
Italy [atom]
 
Hi there, I tried using &Filename in both the "File" and "Field" control sources in an Ole picture object but it's still asking me for a filename for the .bmp at runtime. Any suggestions?
 
Oops.. my mistake.. It does work. Thank you! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top