C# 当子报表数据集值的状态为“时,如何抑制子报表”;假;

C# 当子报表数据集值的状态为“时,如何抑制子报表”;假;,c#,asp.net,crystal-reports,subreport,C#,Asp.net,Crystal Reports,Subreport,我的场景是我正在使用crystal reports,在主报告文档查看器中,它包含许多子报告 现在我的问题是 如何基于数据集列(数据库字段)抑制(隐藏)子报表任何人都可以帮助我编写基于值的表达式 1) if database column value is "1" --> Show the sub report. 2) If database column value is "0" --> Hide the sub report. 您可以在Suppress中编辑公式,然后输入此公式

我的场景是我正在使用crystal reports,在主报告文档查看器中,它包含许多子报告

现在我的问题是

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

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

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

IF {db_column} = 1 THEN false ELSE true