I am new to ReportViewer - Please Help

I have windows applciation where I am connected to Oracle Database.

My function returns DataSet from Oracle Database. And I am trying to display it on to Report Control. It should be easy but some how I can't get this to work. I am not getting any errors and it's not showing any data. Please Help! Thank You in Advance.

This is my code: (VT.NET)
'This return Dataset from oracle database
Dim ds As New DataSet
ds = clsFaxNumCorrection.PrintFaxRpt(txtFaxUpdate.Text, "Print Fax Update Report", txtTotalCount)

'ds1 is the name of the dataset
'ds is the dataset
Dim objDS As ReportDataSource
objDS = New ReportDataSource("ds1", ds)

RptFaxUpdate.LocalReport.DataSources.Add(objDS)

' Set the path of the rdlc document
Dim reportPath As String
reportPath = "MyRpt.rdlc"

RptFaxUpdate.LocalReport.ReportPath = reportPath


RptFaxUpdate.LocalReport.Refresh()

Please help! Thanks, Clickmaster





Answer this question

I am new to ReportViewer - Please Help

  • Cory P

    Guys I got it working.. Please ignore the code above. I have first export the dataset into xml file and the loaded into ReportViewer and it worked fine.


  • I am new to ReportViewer - Please Help