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

datatable , vb , reportviewer , msreportviewer Doha, Qatar
  • 11 years ago
    Hi Iam using 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 a reply

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

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


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Walking on water and developing software from a specification are easy if both are frozen.” - Edward V Berard