Kamis, 16 Desember 2010

vb.net reportviewer parameters

Imports microsoft.Reporting.WinForms
......

'I have two parameters in my report object "StartDate" 'and "EndDate" -- date type


Dim sDate As New ReportParameter("StartDate", CType("1/1/07", Date))
Dim eDate As New ReportParameter("EndDate", CType("5/5/07", Date))

Me.ReportViewer1.LocalReport.SetParameters(New ReportParameter() {sDate, eDate})
Me.ReportViewer1.RefreshReport()

Tidak ada komentar:

Posting Komentar