I have created a crystal report templete that has araound 12 parameters in it. I then created a VB .NET solution and created a form that has textfields. I also added the Crystal Report Templete file to the solution as an existing item. I need to send the values from the textbox to the parameter fields in the Crystal report Templete. Please help...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim text1 As String
Dim text2 As String
text1 = TextBox1.Text
text2 = TextBox2.Text
try
Dim crpt As Templete2 --- Templete2 is the name of the report in the solution item
crpt = New Templete2
crpt.Parameter_pBranchName.CurrentValues.Insert(0, text1)
'crpt.SetParameterValue("pBranchName", text1)
crpt.Parameter_pTxnDate.CurrentValues.Insert(0, text2)
2007-02-19
20:59:39
·
2 answers
·
asked by
IT007
1
in
Computers & Internet
➔ Programming & Design