Crystal reportx XI - vertical alignment of text in textbox

Hello,

I am using crystal XI. Is there a way to set vertical alignment of text in textbox?
I have a textbox where three lines can fit in. I want the text aligned to the bottom of the text box.
Is there a way to do it?
I see the horizontal alignment option . but couldn't find anyhting for vertical alignment.

Thank you,
Sri
srisidAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ShivCommented:
did you try with text rotation ?
right click on field >format field > on "common" tab  Use text rotation 90 degrees
0
srisidAuthor Commented:
Thank you. yeah I tried that. But that actuall rotates the text. I dont want the text to be rotated. I need to just keep the text aligned to the bottom of the text box.
0
ShivCommented:
then work around is :

1.write a formula
chr(13) + "type your text/ insert your field"

2. Insert on the report and extend or check the option - can grow
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

srisidAuthor Commented:
I wrote the formula as you said and then inserted it on the report and extended it.

it moved the text a little bit down in the textbox . but didnt move the text all the way down.

Also I was searching on net and found something like alignment constants --> crBottomAligned - Align to the bottom. can we use that in any way? I am not sure how to use these constants.

Thanks for all your help
0
mlmccCommented:
There is no way in Crystal to force text to the bottom of the field.

THe workaround mentioned is really the only way to do it.

Will the text sometimes have more than 1 line?

mlmcc
0
srisidAuthor Commented:
yeah, the text can be multiple line. The max length of text could go upto three lines
0
mlmccCommented:
Try this


Use this formula for the field
If Length({YourField} <= 30 then
   chr(13) & chr(13) & {YourField}
else If Length({YourField} <= 60 then
   chr(13) & {YourField}
else
    {YourField}

I used 30, you need to determine how wide the field is on the screen.
Set the field height to be 3 lines tall.
Set it to NOT GROW

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.