title: Pass parameter to method gives "Cannot access method on a namespace"
body: <p>I am trying to use this method but I am confused about what/how to pass the parameter to it.</p>
  
  <pre><code>void SaveReport(Telerik.Reporting.Report report, string fileName)
  {
      ReportProcessor reportProcessor = new ReportProcessor();
      Telerik.Reporting.InstanceReportSource instanceReportSource = 
          new Telerik.Reporting.InstanceReportSource();
      instanceReportSource.ReportDocument = report;
      RenderingResult result = 
          reportProcessor.RenderReport("PDF", instanceReportSource, null);
  
      using (FileStream fs = new FileStream(fileName, FileMode.Create))
      {
          fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
      }
  }
  </code></pre>
  
  <p>I have tried to pass the name of the report I need to export, which is in a library in this way:</p>
  
  <p>2nd Modification</p>
  
  <pre><code>protected void Button1_Click(object sender, EventArgs e)
  {
      string fileName = "SS";
      var report = BOMreports.Report321();
      SaveReport(report, fileName );
  }
  </code></pre>
  
  <p>But I keep getting the error "cannot access method on a namespace" on the var report.
  I do I solve this?</p>