How to Show Records with Report Tool-RDLC

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 1176
I have Post the Code
How to Show Records with Report Tool-RDLC
=================================================
LocalReport localrpt = new LocalReport();
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.Visible = true;
localrpt = ReportViewer1.LocalReport;
localrpt.DataSources.Clear();
localrpt.ReportPath = "Test.rdlc";
DataSet ds = new DataSet();
ds = returnDs1();



ReportDataSource rpt1 = new ReportDataSource();
rpt1.Name = "DataSet1";
rpt1.Value = ds.Tables[0];
localrpt.DataSources.Add(rpt1);
localrpt.Refresh();

Comments or Responses

Login to post response