Dynamically add controls to report designer

Posted by: mdynna on 15 May 2023, 7:09 am EST

  • Posted 15 May 2023, 7:09 am EST

    Are there any examples available for adding report elements dynamically (at run time) to a report shown in the end-user report Designer?

    I’ve seen and followed several examples that dynamically add report elements (Table with TextBoxes) to a report that is then just displayed, but we would like to do this same process and show the results in the Report Designer so the user can further customize the report.

  • Posted 15 May 2023, 11:52 pm EST

    Hi Mark,

    I am not really sure if I understood your requirement correctly. As per my understanding, you want to have a report generated at runtime and then show that report into the designer so the users can further edit the report.

    Yes, this is possible with ActiveReports for this you would have to first save the report object into a file by using the PageReport.Save() method and then you can use the saved report into the Designer.

    To load the report into the designer you may use the LoadReport method for the WinForms Designer Control and for the Web Designer you can open the report by using the Web Designer Open or OpenById method. For more information on this please refer to the following pages of our documentation: Web Designer API

Need extra support?

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

Learn More

Forum Channels