【发布时间】:2015-05-13 00:47:39
【问题描述】:
我创建了 2 个报告 billa4.rdlc 和 billa5.rdlc,我想根据用户选择的组合框选项将其中一个报告加载到 reportviewer。 请帮帮我。 下面的代码正在加载 billa4.rdlc
Try
Dim P2 As New ReportParameter("pbillnum", billnoprint)
Me.DataTable1TableAdapter.Fill(Me.billdata.DataTable1, billnoprint)
Me.ReportViewer1.LocalReport.SetParameters(New ReportParameter() {P2})
Me.ReportViewer1.SetDisplayMode(DisplayMode.PrintLayout)
Me.ReportViewer1.ZoomMode = ZoomMode.FullPage
Me.ReportViewer1.RefreshReport()
Catch ex As Exception
MsgBox("error")
End Try
【问题讨论】: