Section report with a subreport inheriting a master report problem

Posted by: andrej.jakopic on 11 November 2021, 5:15 pm EST

    • Post Options:
    • Link

    Posted 11 November 2021, 5:15 pm EST

    Hello,

    is it possible to create a section report which includes subreports, that inherits the master report.

    Master report which is inherited works on all section reports, that do not have a subreport.

    The error we get on all the reports with a subreport at runtime is (build or designer view doesn’t have any errors):

    GrapeCity.ActiveReports.ReportException: Report must inherit from GrapeCity.ActiveReports.SectionReport or a inherited SectionReport object with the MasterReport property set to true.

    at GrapeCity.ActiveReports.SectionReport.ValidateInheritance()

    at GrapeCity.ActiveReports.SectionReport.System.ComponentModel.ISupportInitialize.EndInit()

    We are working with Acitve Reports version 15.2.2.

    Best regards,

    Andrej

  • Posted 15 November 2021, 7:33 pm EST - Updated 30 September 2022, 7:31 am EST

    Hi Andrej,

    I couldn’t reproduce the issue at my end and have attached a screenshot of the same. Please make sure you have set the MasterReport property of the master report to true.

    Also, since you already have a ticket open with us (CAS-26702-T5W2M7), please send across your application on that ticket itself, if you’re still facing the issue.

  • Posted 16 November 2021, 6:51 pm EST

    Hello,

    Thank you for your answer and support.

    We found the problem with our implementation, while preparing a demo for you. In both cases there was a problem, because instace of a subreport was created before InitializeComponent(). The report itself performed without a problem until a MasterReport was inherited.

    Best regards,

    Andrej

Need extra support?

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

Learn More

Forum Channels