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()

Anyone can point me the mistake? will be happy.
I tried manytimes and become tired.

Really I don't know....It's my first project in vb.net.

Thanks

Recommended Answers

All 4 Replies

Let me know the exception raises, and if you need to generate rdlc on the fly I can guide you to great way to work in such thing

Hi RAMY,
Well & Happy To Get You.

Actually my aim is to send the data's from datatable [No Database]to report [rdlc] file. For that can you please guide me?
Other things as said in previous.

Thanks

Thanks RAMY.
You reduced my headache

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.