AddAssembly in sub-reports

Posted by: darin on 8 December 2022, 11:13 am EST

    • Post Options:
    • Link

    Posted 8 December 2022, 11:13 am EST

    AR 16.2.1.0

    We have reports (RPX files) that can call other RPX files as subreports. It seems we have to load the assembly in each RPX before the next sub-report is run. I am just confirming that is the way it is designed to work.

    Our program we load the System.Windows.Forms assembly, but that isn’t carrying over to every sub-report, so in the script of each report we have to add the load assembly to each sub-report.

    Hopefully my explanation is enough.

  • Posted 9 December 2022, 5:19 am EST

    Hi Darin,

    >> It seems we have to load the assembly in each RPX before the next sub-report is run. I am just confirming that is the way it is designed to work.

    Yes, it is designed this way as the script of different SectionReports runs in a new and different temporary class file for each SectionReport.

    Because a new temporary class file is created for the other Report, the assembly used in a different SectionReport/SubReport doesn’t get automatically loaded.

    Regards,

    Anand

Need extra support?

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

Learn More

Forum Channels