在 Stimulsoft Reports 中通过 c# 代码删除波段



我在WebForms ASP.Net 有一份Stimulsoft Reports的报告。

它有一个PageHeaderBand和一个DataBand。我想在运行时删除报表的页头带(当用户单击自定义按钮时)

请帮助我。

答案是:

StiReport report = ...;
StiComponent component = report.GetComponentByName("<CustomName>");
report.GetComponents().remove(component);

最新更新