有没有办法在Crystal Reports ???中以编程方式抑制/隐藏节?
我需要在一个文本框中更改文本
时取消Crystal Reports中的某个部分由于
答案 0 :(得分:2)
在代码隐藏文件
中添加以下代码CrystalDecisions.CrystalReports.Engine.ReportDocument doc=your reportdocument; doc.DataDefinition.FormulaFields["yourformulaname"].Text = "your value"; //or you can directly set the visibility of your section from code behind on the basis of your business logic as doc.ReportDefinition.Sections["sectionnameOrIndex"].SectionFormat.EnableSuppress = true;