Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unbound text in a Crystal report

Status
Not open for further replies.

BiggsWolf

Programmer
Aug 23, 2002
21
CA
I’m sure this is a simple question, but I’m totally lost. I have a VB .net project with a crystal report in it and I want to change the unbound text in code. I have the ClientReport object but can’t seem to change the text of any object inside it.
Any help would be appreciated.
 
I did this using ASP.NET

[tt]
Private myReport As CrystalDecisions.CrystalReports.Engine.ReportDocument
myReport = New MyCRReport()

Dim tObj As CrystalDecisions.CrystalReports.Engine.TextObject
tObj = myReport.ReportDefinition.ReportObjects.Item("TextBoxName")
tObj.Text = "BlahBlah"
[/tt]

Good luck!
Rob
 
Thanks, looks like that was exactly what I needed, it translated into VB .net with no problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top