Provide the Report Parameters in code behind

2 Jun 20211 minute to read

Use the SetParameters method in the Report Viewer to provide the parameter values for rendering reports. Note that this method can also be used in a ReportLoaded event to avoid unexpected issues.

  • C#
  • this.reportViewerControl.ReportLoaded += new Syncfusion.Windows.Reports.ReportLoadedEventHandler(reportViewerControl_ReportLoaded);
    void reportViewerControl_ReportLoaded(object sender, EventArgs e)
    {
        //this.reportViewerControl.SetParameters
    }