Hello,
I have a crystal report based on a stored procedure which accepts only one parameter. Whenever i run the report, the enter parameter value dialog box keeps showing;
I tried to pass the parameter value via the selected item from a combo box but it still asks me the same dialog it just won't accept my parameter. Please help!
Code:
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalReports.Engine
Private Sub go_btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles go_btn.Click
rep.Load("Students.rpt")
rep.SetParameterValue("@desc_section", sect_list.Text)
Reports.CrystalReportViewer1.ReportSource = rep
Reports.Show()
Me.Hide()
End Sub
Thanks in advance.
I have a crystal report based on a stored procedure which accepts only one parameter. Whenever i run the report, the enter parameter value dialog box keeps showing;
I tried to pass the parameter value via the selected item from a combo box but it still asks me the same dialog it just won't accept my parameter. Please help!
Code:
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalReports.Engine
Private Sub go_btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles go_btn.Click
rep.Load("Students.rpt")
rep.SetParameterValue("@desc_section", sect_list.Text)
Reports.CrystalReportViewer1.ReportSource = rep
Reports.Show()
Me.Hide()
End Sub
Thanks in advance.