简体   繁体   English

如何在SSRS中设置矩形的可见性

[英]How to set the visibility of a rectangle in SSRS

I'm having some difficulty implementing the visibility of a rectangle and I used this line of code to set the visibility: 我在实现矩形的可见性时遇到了一些困难,并且我使用了以下代码来设置可见性:

=IIF(Len(ReportItems!txtCountVolunteer.Value) > 0, true, false) 

Unfortunately it doesn't work. 不幸的是,它不起作用。

Good day to you as well. 也祝您有美好的一天。

It seems like that you have got the logic reversed in the expression. 似乎您已使表达式中的逻辑颠倒了。 There is "Hidden" property for a rectangle, and note that there is no "Visible" property. 有一个矩形的“隐藏”属性,请注意没有“可见”属性。 So the expression for the rectangle's "Hidden" property should be: 因此,矩形的“隐藏”属性的表达式应为:

=IIF(Len(ReportItems!txtCountVolunteer.Value) <= 0, true, false) 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM