Choose an enbedded image in a ReportViewer Report using an expression

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.
 
S

slY

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top