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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text formatting

Status
Not open for further replies.

rabbit75

Programmer
Joined
Aug 15, 2002
Messages
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.

I tried adding this line, but it still left aligns:
Code:
tmp.ObjectFormat.HorizontalAlignment = Alignment.HorizontalCenterAlign
Has anyone else encountered this?

Thanks,
rabbit75
 
I've encountered the same problem.

Did you find a fix?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top