Saturday, February 25, 2012

Changing of displat text of a textobject

Hi, I am viewing a report (*.rpt file) from the crviewer. However, I need to change the text of one of the textobject in the rpt during runtime. Can this be done and how is it done. Thanks for reading this.Using RDC and CR 8.5, this can be accomplished by:

'dsrReport is the name of the dsr file
Set Report = New dsrReport

'txtTextObjectName is the name of the TextObject
Report.txtTextObjectName.SetText ("Enter Text Here")

I know you're not using RDC, but maybe you can adapt it to your needs?

No comments:

Post a Comment