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?
 
mlmccConnect With a Mentor Commented:
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
 
shivkasiCommented:
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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
shivkasiConnect With a Mentor Commented:
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
 
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
All Courses

From novice to tech pro — start learning today.