Add Components
Posted: Fri May 17, 2013 12:23 pm
I'm trying to pick up components from another report and add in the report that is being uploaded, but the components do not appear ..
The code is event "END" of the report.
The code is event "END" of the report.
Code: Select all
Stimulsoft.Report.StiReport stiReportCabecalho = new Stimulsoft.Report.StiReport();
stiReportCabecalho.Load("C:\\Relatorios\\Cabecalho.mrt");
Stimulsoft.Report.Components.StiPageHeaderBand headerBand = ((Stimulsoft.Report.Components.StiPageHeaderBand)stiReportCabecalho.GetComponentByName("PageHeaderBandCabecalho"));
PageHeaderBandCabecalho.Components.AddRange(headerBand.GetComponents());