title: Dynamic query for Crystal Report, "No valid report source is available."
body: <p>I am trying to create a Crystal Report with a dynamic data source.  When i click the report button, the crystal report shows up just fine, but when i click any button the Crystal Report tool bar (i.e. Next page, Export To, etc.), i get a pop with the Error "No valid report source is available."</p>
  
  <p>Here is what my C# code looks like:</p>
  
  <pre><code>private void GenerateReport()
  {
      using (DataContext reports = new DataContext())
      {
          var results = //Linq Query;
  
          ReportDocument pr = new ReportDocument();
          pr.Load(Server.MapPath(@"CrystalReport1.rpt"));
          pr.SetDataSource(results.ToList());
  
          CrystalReportViewer1.ReportSource = pr;
          CrystalReportViewer1.DataBind();
      }
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated.  Thanks in advanced.</p>