|
-
May 28th, 2008, 06:44 AM
#1
Thread Starter
Addicted Member
how to print value from textbox into the report
Hi
i want to print a value from the textbox on the form to the report how?
thanks in advance.
-
May 28th, 2008, 11:11 AM
#2
Re: how to print value from textbox into the report
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
-
May 29th, 2008, 01:04 AM
#3
Thread Starter
Addicted Member
Re: how to print value from textbox into 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.
-
May 29th, 2008, 11:20 AM
#4
Re: how to print value from textbox into the report
If the formula in Crystal Reports is the FIRST one and it is named AAA and the the text of the formula is
Code:
Trim("Here Goes Some Text")
The syntax in a VB6 app is :
Code:
cptreports.Formulas(0) = "AAA= Trim(' " & "Here Goes New Text" & " ')"
-
May 30th, 2008, 11:48 PM
#5
Thread Starter
Addicted Member
Re: how to print value from textbox into the report
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|