display text in crystal report

raghava

Member
Joined
Sep 17, 2005
Messages
11
Programming Experience
1-3
hi

how to create a control dynamically at run time on crystal report.
how to display text on a report programmatically.

thanks in advance
Raghava
 
Display Text on a report

VB.NET:
Dim TestReport As New rptTestReport1

Dim YourText As CrystalDecisions.CrystalReports.Engine.TextObject
YourText = CType(TestReport.ReportDefinition.ReportObjects.Item("txtWhatever"), CrystalDecisions.CrystalReports.Engine.TextObject)
YourText.Text = "This is what you want it to say"
rptTestReport1 = the actual report name.
txtWhatever = the name of the textbox on the report you are sending text to.


hope this helps,
 
Man, the moderators are tough.

I saw the question, I didn't understand what was desired; what does 'control' refer to; why you would need to create a control outside of the report when you could just suppress unused/blank controls inside the report? Rather than give faulty information and confrim my ignorance to everyone here I chose to ignore the question completely.

The best laid plans....
 
Back
Top