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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

picture file name

Status
Not open for further replies.

lenidion

Programmer
Apr 8, 2002
3
GR
In a report I want to have one picture that depends on the data.
Can I pass the picture file name with a parameter?
If yes, how?
Thanks in advance.
Eleni.
 
Yasas,

I'm not sure how your report is set up, but the easiest way to do this is probably to have both pictures in seperate, conditionally suppressed sections, and pass the values into that.

For example, if the picture is in the 1st Group Header, place the first pic in GH1 and the second pic in GH1a. In the Format Section of the first, click the x2 button next to 'Suppress?' and enter '{@Parameter} = 'ValueA'. Repeat the process for GH1a, assigning ValueB to the parameter.

Like I say, whether or not this helps you depends on the placement of your pictures, and how exactly each is supposed to react to the data. But I'm pretty sure you can't pass parameters into the image.

The other alternative is to place the image(s) in subreport(s), and pass the parameters to that.

Naith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top