Re: problem on passing value
I think it's better using a formula field
Add a formula field to your rpt
Let's say that your formula field name is @MyFormula and the text is :
Now from your app, it sould be something like
Code:
Dim GInt2 As Integer
For GInt2 = 1 To oReport.FormulaFields.Count
Select Case oReport.FormulaFields(GInt2).Name
Case "{@MyFormula}": CRReport.FormulaFields(GInt2).Text = "Trim(" & Chr(39) & Trim(Text1.Text) & Chr(39) & ")"
.
.
End Select
Next GInt2
Re: problem on passing value
i want the value on my textbox get into the crystal report.......
i may not use any of the formula, all i need is to place the value on my textbox on vb6 to then text on my crystal report textbox on the header so that is have a detail information..
the value im going to place on my textbox on crystal report is not in the database?.......................................................
by the way thank reply...
Re: problem on passing value
Create a new formula field in CR
Place that formula field in the Header Section instead of the text box
Pass the Text1.Text value from VB app to CR formula field
Try the way I posted in #2
That's how I pass almost all the variable data to CR reports and work ok
Remember that not all CR formula fields return numeric data, that why I use the next as the body of the formula
Code:
Trim("Some Text at design time")
and at execution time we can replace that text by other data, in this case the text1. content