For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > September 2005 > Using .SetText to change report title









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Using .SetText to change report title
franky

2005-09-23, 7:02 pm

Hello,

I'm new to using Crystal Reports and am having some problems changing some
text fields on my reports that will be based on data provided on other forms.
I'm not sure if my approach is even correct... I need to change the text in
some text fields on the page header prior to running the report. Whenever i
view the report the text is not be replaced. How do I accomplish this?

Thanks in advance!
Here is my failed attempt at doing this. Using vb6 and crystal report 9:

Private Sub Form_Load()
Dim CRXReport As New CrystalReport1
Screen.MousePointer = vbHourglass
Screen.MousePointer = vbDefault

CRXReport.Text1.SetText "Replaced with this text"

CRViewer91.ReportSource = Report
CRViewer91.ViewReport
End Sub
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com