Hi
I have a Crystal 8.5 report called by a VB6 programme.
In my code I set the text at run time that is to be displayed in text objects on the report header, for example:
Set crxText = .Sections(2).ReportObjects(13)
crxText.SetText strCustomerName
If, however, I insert another text object into this section on the report design in Crystal then my object reference may change - leading to needing to do a code change - for example the above reference may become .Sections(2).ReportObjects(14)
How can I reference the text objects in VB6 without using the index?
I have seen in Crystal XI a object name property on text objects but can not seem to find something similar on my Crystal 8.5 reports (and I am not in a position at the moment to upgrade these 8.5 reports to Crystal XI).
Many thanks in advance.
I have a Crystal 8.5 report called by a VB6 programme.
In my code I set the text at run time that is to be displayed in text objects on the report header, for example:
Set crxText = .Sections(2).ReportObjects(13)
crxText.SetText strCustomerName
If, however, I insert another text object into this section on the report design in Crystal then my object reference may change - leading to needing to do a code change - for example the above reference may become .Sections(2).ReportObjects(14)
How can I reference the text objects in VB6 without using the index?
I have seen in Crystal XI a object name property on text objects but can not seem to find something similar on my Crystal 8.5 reports (and I am not in a position at the moment to upgrade these 8.5 reports to Crystal XI).
Many thanks in advance.