Community discussion forum

Can't Identify !! -REPORTS [rdlc] from DATATABLE

  • 7 months ago
    Hi Iam using vb.net 2008, I have a clarification, with my project I added a dataset ,is having dataset [xsd] file name- DataSet1 and datatable table name -datatable1. also it's having the fields "id,item" with my form I have coding Dim ds As New DataSet1 Dim t As DataTable = ds.Tables.Add("datatable2") t.Columns.Add("id", Type.GetType("System.Int32")) t.Columns.Add("Item", Type.GetType("System.String")) Dim r As DataRow Dim i As Integer For i = 0 To 15 r = t.NewRow() r("id") = i r("Item") = "Item" & i t.rows.add(r) next ReportViewer1.Reset() ReportViewer1.LocalReport.DataSources.Clear() ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local ReportViewer1.LocalReport.ReportPath = "C:\paramu\PIS\report1.rdlc" ReportViewer1.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", ds.Tables(0))) ReportViewer1.LocalReport.Refresh() But the o/p is not displaying on report...any mistake with my codes? Explain me the error will be happy. Thanks
    Post was edited on 08/04/2009 11:06:42 Report abuse

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!