Change visibility with expression in Microsoft Report rdlc

I need to change the visibility of the image in my report. For this I use an expression. By default, I want it to be set to true, and when I print, I set the parameter to false so that the image does not display. The problem is that the image never appears.

=CBool(Parameters!ShowImage.Value)

C # (parameter that I send when creating a report)

p[27] = new ReportParameter("ShowImage", "True");
            this.reportViewer1.LocalReport.SetParameters(p);

Thanks in advance

+3
source share
1 answer

Are you setting the Hidden property of the control in RDLC correctly?

Try =(Parameters!ShowImage.value="False")

+2
source

Source: https://habr.com/ru/post/1727214/


All Articles