Databases Reference
In-Depth Information
Finally, the ReportViewer's RefreshReport method causes report execution to begin.
Private Sub btnViewReport_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnViewReport.Click
Dim Param(1) As Microsoft.Reporting.WinForms.ReportParameter
Param(0) = New Microsoft.Reporting.WinForms.ReportParameter(“OrderDateFrom”, _
Me.dtOrderDateFrom.Value)
Param(1) = New Microsoft.Reporting.WinForms.ReportParameter(“OrderDateTo”, _
Me.dtOrderDateTo.Value)
Me.ReportViewer1.ServerReport.SetParameters(Param)
Me.ReportViewer1.RefreshReport()
End Sub
In Figure 12-20 you can see the result. The report is displayed in the ReportViewer control embedded
on the form. The standard report parameter bar and prompts are not displayed in the top of the viewer
since they were suppressed using the related ReportViewer properties.
Figure 12-20
Search WWH ::




Custom Search