Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR10 Formatting

Status
Not open for further replies.

rabbit75

Programmer
Aug 15, 2002
30
I have a report in CR10 which has a text object which changes, using this code:

Code:
Dim tmp As CrystalDecisions.CrystalReports.Engine.TextObject

tmp = _
myRpt.ReportDefinition.Sections"TSection4").ReportObjects.Item("Text1")

tmp.Text = myValue

The problem is that the text should be centered, and it is fine if I don't change the text, but if I change the text, it left aligns. Even if I change the alignment using the object by adding a line to the above code, it does not work.

Has anyone else encountered this?

Thanks,
rabbit75
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top