Is it possible to add a dynamic picture to a parameter in rdlc report? for example:
=SWITCH(Parameters!picture.Value="1","picture1.jpg",
Parameters!picture.Value="2","picture2.png")
or something similar?
or any other way to use the parameter's value to be the guide for the dynamic picture?
Yes this is possible. See this blog entry for a good explanation.
In short do the following:
Source property to the value External
Value property to an expression like =Parameters!PathToPicture.Value
EnableExternalImages property of the ReportViewer or the LocalReport object to true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With