View Single Post
  #2 (permalink)  
Old February 15th, 2007, 05:32 AM
felixm_jr felixm_jr is offline
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

    Public Sub DailyReport(ByVal recdate As Date)
        reportViewer.ServerReport.ReportServerUrl = New System.Uri("http://localhost/ReportServer/")
        reportViewer.ServerReport.ReportPath = "/TA_Report/DailyTA"

        Dim params(0) As Microsoft.Reporting.WinForms.ReportParameter
        params(0) = New Microsoft.Reporting.WinForms.ReportParameter("RecD ate", recdate)

        reportViewer.ServerReport.SetParameters(params)

        Me.reportViewer.RefreshReport()
    End Sub

try something similar to this one but changes some value according to your variables.
"RecDate" is parameter name that i declare in report designer
recdate is Date type that i pass to the parameter.

Reply With Quote