1

How can I render a rdlc report into webpart in sharepoint 2013. I have created a report, also added a data-source and a dataset. I have the following code:

           ReportViewer1.ProcessingMode = ProcessingMode.Local;
           ReportViewer1.LocalReport.ReportPath = "Report1.rdlc";

           if (dynGridView.Rows.Count > 0)
           {
               ReportDataSource rds = new ReportDataSource("DataSet1", dynGridView.DataSourceObject);
               ReportViewer1.LocalReport.DataSources.Clear();
               ReportViewer1.LocalReport.DataSources.Add(rds);
           } 

and I am getting this error: enter image description here

my datasource looks like this: enter image description here

please help me.

  • where's the code that should fill dynGridView? what's the data source of it? – Mohamed El-Qassas MVP Aug 27 '17 at 13:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.