Posted 9 January 2024, 3:02 am EST
Is it possible to add parameters at runtime for RDL/Page Reports? I can only see it for section reports
Forums Home / ActiveReports / General Discussion
Posted by: bnguyen on 9 January 2024, 3:02 am EST
Posted 9 January 2024, 3:02 am EST
Is it possible to add parameters at runtime for RDL/Page Reports? I can only see it for section reports
Posted 9 January 2024, 4:07 pm EST
Hi Bryan,
Yes, you can add a parameter at runtime for Page/RDL reports by loading your report into a ‘PageReport’ class object, creating a ‘ReportParameter’ object, and adding the same to the report by using the ‘PageReport.Report.ReportParameters.Add()’ method.
To assign a value to your parameter you can use the ‘PageReport.Document.Parameters[“Parameter1”].CurrentValue’ property.
Please find attached a sample implementing the same.
Regards,
Anand