How to load rdlc and datasource dynamically in ASP.net reportviwer?
<p>Need you urgent reply...</p>

<p>I am trying to load the report on the report viewer of ASP.net web application. The thing is that I have two project , class library and web application. In the web application I have .edmx and wcf Data service ( that referring the edmx). Inside the class library I have referencing the service. And I have created one class (Company) which i have written linq query. Finally I have created rdlc report in web application and use the company class as object to get all fields to design the report. This all are perfect and working well. Now what I have problem is that when I tried to load the report dynamically on button click then I got "An error has occurred during report processing.Dataset1"  the code I have used is as below:</p>

<p>protected void CompanyReport_Click(object sender, EventArgs e)
        { 
          ReportViewer1.LocalReport.ReportPath = @"c:..............\Reports\CompanyReport.rdlc";
          ReportDataSource ds = new ReportDataSource();
            ds.Name = "Dataset1";
            ReportViewer1.LocalReport.DataSources.Add(ds);</p>

<pre><code>    }
</code></pre>
