I have the a DataTable and I want to show it in Report, For this I do this...
1. Create a DataTable "tbl" and add data into it.2. Create a DataSet1 (DataSet1.xsd) having table ("tblEmp") with same defination as in my DataTable "tbl"3. In a Form Draw ReportViewer1 control and a button(Button1) and create following code in Button1_click event
Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local Me.ReportViewer1.LocalReport.ReportPath = "C:\Report1.rdlc" Me.ReportViewer1.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("tblEmp", tbl)) Me.ReportViewer1.RefreshReport()
The report show only report columns without any data. [My tbl has 3 rows]
Please tell me where I am wrong ?
Thanks