Mike,
I have done this in C#, but not in VB so forgive me if the syntax is wrong. I think what you want to do is something like this:
Dim myReport As New CrystalReport1()
Dim myText As CrystalDecisions.CrystalReports.Engine.TextObject
myText = CType(myReport.ReportDefinition.ReportObjects.Item("HeaderText"),CrystalDecisions.Engine.TextObject)
myText.Text = "Mike"
This sample is taken from a great book on Crystal Reports for .Net that I highly recommend. It is full of very useful sample code! You can find it at
www.CrytalReportsBook.com.
Kind Regards,
Mat
>Hello,
>I have a crystal report that I am opening in vb.net. I have a textbox on the report in which I want to manipulate before I even open the report. How can I do this?
>
>I was told to use something like:
>
>ReportName.ReportDefinition.Sections(3).ReportObjects.Item("textboxname") = "Mike"
>
>but I get an error saying that the Item property is read only... any suggestions?
>
>
>MAC