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);
Get Components of an existing report and add it into a new report
Re: Get Components of an existing report and add it into a new report
Anyone? Is that possible or No ? As i cant make it and always get exception.
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Get Components of an existing report and add it into a new report
Hello,
In this case, you should set datasource and other properties for band in second report.
Please send us a simple project which reproduces the issue for analysis.
Thank you.
In this case, you should set datasource and other properties for band in second report.
Please send us a simple project which reproduces the issue for analysis.
Thank you.