Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What Error() - Report [RDLC] From DataTable

Status
Not open for further replies.

Mahey

Programmer
Dec 24, 2008
52
SA
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 explain me the error will be happy.

Thanks
 
What is the error, and what line is causing it?


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Thank You Jebenson

No error. But the o/p is not displaying on reportviewer.
With report I have a table.

can you please explain me the things?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top