OK. It works. I knew I had to be doing something wrong. I had messed with the report so much, I didn't realize the object I thought was a text object was actually a field object. Thanks for your help. I knew this had to be easier than what I was trying to make it.
Diana
Dim TextField As CrystalDecisions.CrystalReports.Engine.TextObject
TextField = cr.PageHeaderSection1.ReportObjects.Item(0)
TextField.Text = cInvestigator.LocationName.ToString
Here is my code that I am using. I have a text box in the page header of my report. I want to pass...
stnkyminky,
I am trying to pass data to a text box on my crystal report from a form in vb.net. When I use the code you suggested, I get an error "'text' is not a member of 'CrystalDecisions.CrystalReports.Engine.ReportObject'."
The text box is on my crystal report. tmp is dim as a text object...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.