|
-
Jan 1st, 2012, 02:30 AM
#1
Thread Starter
Member
[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.
Last edited by RHankinsJr; Jan 1st, 2012 at 02:35 AM.
-
Jan 1st, 2012, 12:18 PM
#2
Thread Starter
Member
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.
-
Jan 2nd, 2012, 03:06 AM
#3
Thread Starter
Member
Re: RDL files and report viewer
I needed:
Me.controls.add(rv)
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|