title: Pass parameters to sub report in rdlc
body: <p>I am trying to pass parameters in a sub report in rdlc report. I have user ReportParameter but when I execute it the function is not called and it show <strong>"Report cannot be shown"</strong></p>
  
  <pre><code>        ReportParameter[] paramReport = new ReportParameter[6];
          paramReport[0] = new ReportParameter("Month1", (DateTime.ParseExact(fromd1.ToString("dd/MMM/yyyy"), "dd/MMM/yyyy", CultureInfo.InvariantCulture)).ToString("MMMM"), false);
          paramReport[1] = new ReportParameter("Month2", (DateTime.ParseExact(fromdate2.ToString("dd/MMM/yyyy"), "dd/MMM/yyyy", CultureInfo.InvariantCulture)).ToString("MMMM"), false);
          paramReport[2] = new ReportParameter("Month3", (DateTime.ParseExact(dt_todate3.ToString("dd/MMM/yyyy"), "dd/MMM/yyyy", CultureInfo.InvariantCulture)).ToString("MMMM"), false);
          paramReport[3] = new ReportParameter("Month4", (DateTime.ParseExact(dt_todate4.ToString("dd/MMM/yyyy"), "dd/MMM/yyyy", CultureInfo.InvariantCulture)).ToString("MMMM"), false);
          paramReport[4] = new ReportParameter("Month5", (DateTime.ParseExact(dt_todate5.ToString("dd/MMM/yyyy"), "dd/MMM/yyyy", CultureInfo.InvariantCulture)).ToString("MMMM"), false);
          paramReport[5] = new ReportParameter("Month6", (DateTime.ParseExact(dt_todate6.ToString("dd/MMM/yyyy"), "dd/MMM/yyyy", CultureInfo.InvariantCulture)).ToString("MMMM"), false);
          this.ReportViewer1.LocalReport.SetParameters(paramReport);
          this.ReportViewer1.LocalReport.Refresh();
  </code></pre>
  
  <p>Above is my code where I am passing parameters to the sub report. But this code is not working.</p>
  
  <p>Please if anybody knows how to do this then help me..</p>
  
  <p>Thanks in advance</p>