How, in VB.Net, can I assign different reports to a ReportViewer? I can create a viewer for each report, but that seems very inefficient.
Any help is appreciated.
2 Answers, 1 is accepted
answered on 10 Dec 2009, 06:04 PM
You simply use the Report property of the viewer to change the assigned report e.g.:
Protected Sub DropDownList1_SelectedIndexChanged(sender As Object, e As EventArgs)
Dim rpt As Telerik.Reporting.Report
Select Case DropDownList1.SelectedItem.Value
rpt = New Report1()
rpt = New Report2()
rpt = New Report3()