Choose an enbedded image in a ReportViewer Report using an expression

  • Thread starter Thread starter slY
  • Start date Start date
S

slY

Hi!

This is very urgent, I have set of enbedded images in a ReportViewer
Report that I want to visualize using appropriate expressions.


After having uploaded IMG1.jpg IMG2.jpg IMG3.jpg into the ReportViewer
Report, they appear as costants IMG1, IMG2, IMG3

Now, I'd like to set up an image inside the report doing something like


=Switch(Fields!isADog.Value = 1, IMG1, Fields!isACat.Value = 1, IMG2,
Fields!isACow.Value = 1, IMG3)

Is it possible?? I tried, but... mission failed.


Thank you very much,

mc.
 
Il 21/01/2010 23.00, slY ha scritto:
=Switch(Fields!isADog.Value = 1, IMG1, Fields!isACat.Value = 1, IMG2,
Fields!isACow.Value = 1, IMG3)

Is it possible?? I tried, but... mission failed.

Hopefully, even if it seems to be not working (the preview is completely
wrong), it works at run-time!
 
Back
Top