Vertical text alignment in Crystal Reports?

Viewed 66019

In the Crystal Reports editor that comes with Visual Studio (2008) is it possible to align text to the center of a text box rather than to the top?

I can't find the option anywhere and a Google search is not encouraging but I just can't bring myself to believe that they would not include such an obvious feature.

5 Answers

You can achieve this with strings, as you will see a paragraph tab instead of a number tab when you enter the FORMAT FIELD menu. To make your number a string you should format it as a formula field thusly:

chr(13) + chr(10) + totext(mynumber,0)

Then in the FORMAT FIELD menu select - Line spacing: multiple of: 0.2

You may need to experiment with the 0.2 value until you find your number (i.e. string prefixed with a carriage return) nicely centered in the middle of your box.

Cheers, Chilly

in crystal report 10 the label >> right click >> format Text >> Common >> text rotation . choose 90 degree the text will have a vertical alignment same in a field or any object you add to the report hope that i help you

note the answer (Format text > tab Paragraph, Horizontal alignment: Centered) is a wrong

Related