Adding Parameters at Runtime on RDL/Page Report

Posted by: bnguyen on 9 January 2024, 3:02 am EST

    • Post Options:
    • Link

    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

    PageReportCode.zip

Need extra support?

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

Learn More

Forum Channels