[RESOLVED] RDL files and report viewer
I have been provided with a series of RDL files and dataset specifications for each RDL report. I have successfully generated the proper data tables for each report specification but have not yet figured out how to successfully use the reportviewer in my application with the provided RDL files.
Due to the large number of reports I will be working with I need to hard code the reportviewer instead of using the control in design mode.
Any help is greatly appreciated, thank you.
--edit--
I have reportviewer 10 installed and added to my application, I forgot to mention that.
Re: RDL files and report viewer
This is what I have, forgive any typos I am having to type this on my phone. Inet is down in my county.
vb Code:
Dim rvParams as ReportViewer
rvParams.add(New ReportParameter("pReportName"))
... continues
Dim rv as ReportViewer
rv.LocalReport.ReportPath = "reports/DMNT-4527-AUTO.RDL"
Rv.LocalReport.DataSources.add(New ReportDataSource("DS-DMNT-4527-AUTO", dtReport))
rv.LocalReport.SetParameters(rvParams)
rv.RefreshReport()
rv.Show()
The code runs but will not display a report or report viewer form. I am sure I am missing something simple.
Thanks for looking.
Re: RDL files and report viewer
I needed:
Me.controls.add(rv)
Thanks.