Get Components of an existing report and add it into a new report
Posted: Tue Jun 26, 2018 1:49 am
Can i achieve this? For instance i Have a report called reportA and reportA consist of one dataBand.
Can i take the databand out using GetComponents()["DataBand"] method and add it into a new generate report using page.Components.Add(DataBand) ? I try but fail when report generation? Is that possible.
StiDataBand d1 = reportA.GetComponents()["DataBand"] as StiDataBand;
StiReport reportTest = new StiReport();
StiPage page = reportTest.Pages[0];
page.Components.Add(d1);
Can i take the databand out using GetComponents()["DataBand"] method and add it into a new generate report using page.Components.Add(DataBand) ? I try but fail when report generation? Is that possible.
StiDataBand d1 = reportA.GetComponents()["DataBand"] as StiDataBand;
StiReport reportTest = new StiReport();
StiPage page = reportTest.Pages[0];
page.Components.Add(d1);