Sectionreportmodel.datasource does not exist

Posted by: darin on 21 March 2022, 10:34 am EST

  • 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?

  • Posted 21 March 2022, 2:06 pm EST

  • Posted 22 March 2022, 7:29 am EST

    Hello,

    We are glad that you were able to resolve the issue. Let us know in case you ran into any further issues.

    Regards,

    Dushyant Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels