Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parameters to web vb.net

Status
Not open for further replies.

Trainingjason

Instructor
Dec 6, 2001
127
GB
I have created a asp.net page on vb.net and want to overwrite an existing parameter how do I do this.

thanks
 
I am trying to overwrite an existing parameter in a report in an asp.net page via vb.net.I am trying to use the parameterfieldinfo. Can any one tell me the steps I need to do to pass some data on a textbox as the value supplied to a preexisting parameter.
 
got it almost working, passes the parameters but the second page does not show any data

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' CrystalReportViewer1.SelectionFormula = "{Customer.Country} = " & Chr(34) & TextBox1().Text & Chr(34)
Dim paramfield1 As New CrystalDecisions.Shared.ParameterField
Dim paramfields As New CrystalDecisions.Shared.ParameterFields
Dim discreteval1 As New CrystalDecisions.Shared.ParameterDiscreteValue

paramfield1.ParameterFieldName = "Test1"
discreteval1.Value = TextBox1.Text
paramfield1.CurrentValues.Add(discreteval1)
paramfields.Add(paramfield1)
With CrystalReportViewer1
.ParameterFieldInfo = paramfields
.ReportSource = "C:\testpath\test.rpt"
.Visible = True
End With
End Sub
End Class

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top