水晶报表设计TextObject/PictureObject为不可见

文本对象:

(userReport.ReportDefinition.ReportObjects["Remark1"] as TextObject).ObjectFormat.EnableSuppress = true;

(userReport.ReportDefinition.ReportObjects["Remark2"] as TextObject).ObjectFormat.EnableSuppress = false;

 

图片对象:

(rptDocument.ReportDefinition.ReportObjects["DetailsCopy1"] as PictureObject).ObjectFormat.EnableSuppress = true;

(rptDocument.ReportDefinition.ReportObjects["DetailsCopy2"] as PictureObject).ObjectFormat.EnableSuppress = false;

你可能感兴趣的:(水晶报表设计TextObject/PictureObject为不可见)