SSRS 2008 - 具有详细信息行可见性的文本颜色表达。隐藏
我可以这样做:
在表达式中设置字体颜色,
=IIF(nameOfTableRow.Visibility.Hidden=true, "Black", "Silver")
如何获取隐藏属性的值?
表
|______________________________|
|______________________________|
|____________________________| <---- 一个详细信息行(可见性-隐藏:true/false)
can I do this:
set font color in expression,
=IIF(nameOfTableRow.Visibility.Hidden=true, "Black", "Silver")
How can I get value of hidden properties ??
TABLE
|______________________________|
|______________________________|
|_____________________________| <---- One Detail Row (visibility-hidden: true/false)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用报告参数来完成此操作。以下是步骤。
声明一个名为“RowVisibility”的报表参数,其数据类型设置为Boolean
然后从报表设计器中选择整个“Detail”行并将其RowVisibility 设置为该参数“[@RowVisibility]”如下所示。
然后对于详细信息中存在的每个单独的文本框 行。将其 Color 属性设置为您的表达式字符串。
=IIF(Parameters!RowVisibility.Value=true, "Black", "Silver")
这将按您的预期工作。因此,将根据报表参数设置 Tablix RowVisibility,并根据相同的参数更改字体颜色。
希望这有帮助。
You could make use of Report Parameters to get this done. Here are the steps.
Declare a ReportParameter named "RowVisibility" with datatype set as Boolean
Then from the report designer, select the entire "Detail" row and set it's RowVisibility to that parameter "[@RowVisibility]" as shown below.
Then for each individual Textbox present inside the Detail row. Set it's Color property to your expression string.
=IIF(Parameters!RowVisibility.Value=true, "Black", "Silver")
This would work as you expected. So based on the report parameter the Tablix RowVisibility will be set and based on the same parameter the Font color also be changed.
Hope this helps.