ousoonerjoe
Programmer
I have been trying to locate so much as a sample of code on how to do this no avail.
I have a report with 3 arguments that in turn are passed to the Stored procedure and populates the Report. How do I pass these 3 arguments over from a VB.Net 2005 application?
Any suggestions or tip you can provide are highly appreciated. Thank you.
"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.
I have a report with 3 arguments that in turn are passed to the Stored procedure and populates the Report. How do I pass these 3 arguments over from a VB.Net 2005 application?
Code:
Private Function SelectFormReport(ByVal SelFrmRpt As String) As Boolean
Dim CmdSql As New DataUpdates
CmdSql.CommandTxt = "EXEC cst_Rpt_APY320L '" & StartDate.Date & "', '" & EndDate.Date & "', " & CompID
CmdSql.ExecuteCmd()
ReportName = "/AcctPay/Apy320L"
frmSvrReport.Show()
End Function
Public Class frmSvrReport
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.ReportViewer1.ServerReport.ReportPath = ReportName
Me.ReportViewer1.RefreshReport()
End Sub
End Class
Any suggestions or tip you can provide are highly appreciated. Thank you.
"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.