Posted 21 March 2022, 10:34 am EST
We just upgraded from AR11 to AR16. Easy upgrade in the source, but when running the reports we are having some issues.
We are using SectionReportModel so all of our reports are SectionReports (not sure why they are section and not page, but when we upgraded from AR7 to AR11 that is when it went to section).
We have lots of reports that have sub-reports.
In the script, we do the following:
GrapeCity.ActiveReports.SectionReportModel.ActiveReport rptSub = new GrapeCity.ActiveReports.SectionReportModel.ActiveReport();
m_ds.ConnectionString = connstring;
m_ds.SQL = strsql;
rptSub.DataSource = m_ds;
That worked fine in AR11 and errors in AR16 with:
the type or namespace name “datasources” does not exists in the namespace GrapeCity.ActiveReports.SectionReportModel.
I am trying to understand what needs to be changed, but nothing in sectionreport reference the datasource, only the pagereport has datasource. Do all sectionreports need to be changed to pagereports? What is the difference between sectionreport and pagereport?