Subreport Load Options

Posted by: mdynna on 10 September 2026, 10:08 pm EST

  • Posted 10 September 2026, 10:08 pm EST

    Hi there,

    For a subreport control on a Page report, is the only way to load/indicate the subreport by file path? We store all the reports our users make in the database as a stream and then load them to run when requested so they don’t exist on the disk. Is there any way to use the PageReport object in memory or reference the database stream?

  • Posted 11 September 2026, 12:26 am EST

    Hi Mark,

    You can set up a resource locator which calls the ‘GetResource’ method to locate the resource at runtime. You can use that to load your report from the database to a stream and return it to a viewer.

    You may learn more about resource locator here: https://developer.mescius.com/activereportsnet/docs/developers/extensibility-in-activereports/custom-resource-locator.

    We have attached a minimal sample implementing a resource locator that loads the disk reports into a MemoryStream and returns it through the GetResource method for reference.

    Regards,

    Anand

    SubReports_ResourceLocator.zip

  • Posted 14 September 2026, 5:05 pm EST

    Thanks for the reply. I haven’t been able to get the funciton in the ResourceLocator class to fire, in our code or the sample code.

    Could you create a sample that targets AR17 and .NET Framework 4.8?

  • Posted 15 September 2026, 9:10 am EST

    Hi Mark,

    Please find attached a sample for ActiveReport 18 with .NET Framework 4.8 using a resource locator for your reference.

    Regards,

    Anand

    ActiveReports17_ResourceLocator.zip

Need extra support?

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

Learn More

Forum Channels