子报表数据集值状态为“false”时如何抑制子报表

时间:2013-03-26 02:46:17

标签: c# asp.net crystal-reports subreport

我的方案是我正在处理水晶报告,主报告文档查看器包含许多子报告,

现在我的问题是

如何基于数据集列(数据库字段)抑制(隐藏)子报表,任何人都可以帮助我根据值编写表达式。

1) if database column value is "1" --> Show the sub report.
2) If database column value is "0" --> Hide the sub report.

1 个答案:

答案 0 :(得分:1)

您可以在Surpress中编辑公式,然后输入此公式

IF {db_column} = 1 THEN false ELSE true