Hi expert, I created an Option variable with two strings A, B and added to the request page of the report. In the RDLC, I uploaded two images(A, B) and set the image property embed and visibility to hide. In the hide value, I have the following code:
=Switch(Fields!image.Value=1,"A",
Fields!image.Value=2, "B")
When I ran the report and selected the option A(not sure why it is not displaying as option button, but instead it showed the dropdown list A, B), Image A didn't show (
only showed icon of missing image). But when I selected B from the dropdown list, it showed image B perfectly. I tried to switch A & B, but this time image B which was A on the first testing didn't show on the report (only showed the icon of missing image). When I selected B (It was A on the first test), the image showed perfectly.
Why does it not work for the first dropdown item in my case? I need your professional advice. Thank you very much!