title: How to SET ReportParameter Value of SSRS Report in WPF
body: <p>I am trying to Call SSRS Report in WPF with Parameter Passing From WPF UI without using Microsoft Report Viewer Component. I Used the following Code for Passing Parameter to SSRS Report...</p>
  
  <pre><code>            Microsoft.Reporting.WebForms.ReportParameter[] reportParameterCollection = new Microsoft.Reporting.WebForms.ReportParameter[1];       //Array size describes the number of paramaters.
  
              reportParameterCollection[0] = new Microsoft.Reporting.WebForms.ReportParameter();
              reportParameterCollection[0].Name = "OfficeCode";
              reportParameterCollection[0].Values.Add(cmbOfficeName.SelectedValue.ToString().Trim());
              rpt.SetParameters(reportParameterCollection);
  </code></pre>
  
  <p>But, the Last Statement...</p>
  
  <pre><code>rpt.SetParameters(reportParameterCollection);
  </code></pre>
  
  <p>raise the following error...</p>
  
  <blockquote>
    <p>The Best Overload method match for 'Microsoft.reporting.Winform.Report.Setparameters(Microsoft.Reporting.Winform.ReportParameter)' has Some Invalid Argument.</p>
  </blockquote>
  
  <p>How Can I Solve this issue? Can Anyone help Me.? Thanks in advance...</p>