[英]change visibility with expression in Microsoft Report rdlc
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.
默认情况下,我希望它设置为true,当我打印时,我将参数设置为false,因此图像不会显示。 Problem is, image never show's up.
问题是,图像永远不会显示出来。
=CBool(Parameters!ShowImage.Value)
c# (the parameter i send when creating the report) c#(创建报告时发送的参数)
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? 你正在设置RDLC中控件的隐藏属性吗?
Try =(Parameters!ShowImage.value="False")
Try
=(Parameters!ShowImage.value="False")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.