Hi
i want to print a value from the textbox on the form to the report how?
thanks in advance.
Printable View
Hi
i want to print a value from the textbox on the form to the report how?
thanks in advance.
Please, post Crystal Reports version, Programming Language and Object used (RDC or OCX) to help You.
The general answer is : Add a Formula field to your report and modify it (the formula) in your application before print the report
thanks for reply
im using old crystal report belongs to vb6
i use this code
cptreports.ReportFileName = App.Path & "\report1.rpt"
cptreports.Formulas(0) = "mystring"
cptreports.PrintReport
the report don't showed up !! but when i remove the second line the report is shown
any idea?
thanks in advance.
If the formula in Crystal Reports is the FIRST one and it is named AAA and the the text of the formula isThe syntax in a VB6 app is :Code:Trim("Here Goes Some Text")
Code:cptreports.Formulas(0) = "AAA= Trim(' " & "Here Goes New Text" & " ')"
thanks i will try