开发者

change visibility with expression in Microsoft Report rdlc

开发者 https://www.devze.com 2022-12-15 04:35 出处:网络
i need to change the visibility of a image in my report. 开发者_开发百科For that i\'m using an expression.

i need to change the visibility of a image in my report. 开发者_开发百科For that i'm using an expression. For default i want it set to true, and when i'm printing i set the parameter to false so the image doen't show up. Problem is, image never show's up.

=CBool(Parameters!ShowImage.Value)

c# (the parameter i send when creating the report)

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

Thanks in advance


You're setting the Hidden property of the control in the RDLC right?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消