Reporting Services - 根据报表参数隐藏表格列 [英] Reporting Services - hide table column based upon report parameter
本文介绍了Reporting Services - 根据报表参数隐藏表格列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Reporting Services 2005 中有一个报表,我想根据报表参数隐藏或显示单个表格列.有没有人知道如何做到这一点?
I have a report in Reporting Services 2005, and I want to hide or show a single table column based upon a report parameter. Does anyone have any idea how to do that?
谢谢!
推荐答案
将列的可见性设置为将返回 true 或 false 的表达式.例如,可以在 TextBox 的 Visibility 选项卡中找到此属性.
Set the Visibility for the column to an expression which will return true or false. This property can be found on in the Visibility tab on a TextBox for example.
单击表达式的单选选项,然后您的表达式可能看起来像
Click the radio option for Expression and then your expression might look like
=Parameters!ShowColumn.Value
这篇关于Reporting Services - 根据报表参数隐藏表格列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文