Skip to Content
avatar image
Former Member

Vertical Alignment in Fields

Using Crystal Reports 2008 to design a report:

I would like to VERTICALLY align text in a field. (Centred vertically).

I know you can format fields and set horizontal alignment, either by selecting from a drop down or using a conditional format.

Why is there no option to set vertical alignment?? Doesn't anyone ever need to do this? (Searching through dozens of internet forums, it seems yes, but no conclusive answers to this problem have been offered).

What is the alignment constant (mentioned in help section: "Alignment Constants") "crCenteredVertically" for?? How and where is it used?

For that matter, why does the Object Size & Position dialogue box offer to place a condition on the X (horizontal) position but not on the Y (vertical) position. This would have been a good workaround.

ANY SUGGESTIONS? Thanks in advance!

NB: I have do NOT require the field to grow. But I would like the text to move within the boundaries of the field (using a formula to generate a text string which contains between 5 and 7 lines of text)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 05, 2008 at 11:22 AM

    Hi Glenn

    You can set the alignment as vertical would request you to follow the below steps.

    1)Right click the particular object

    2)Click on "Format Editor"

    3)Click on "Common Tab"

    4)Change the "Text Rotation" to 90 degree.

    5)Click on OK.

    6)In design tab increase the size of that particular object.

    I hope this will work.

    Regards

    Asha Lund

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 03, 2015 at 09:57 AM

    I'm using Crystal 2011 and as a user of MS Excel I was surprised to find there is no vertical alignment icon  similar to excel or even a tab feature in "Format Text"

    I've concluded a Simple workaround to the solution is to add another line of text to the first line of text in the field and reduce or increase the font size of the first line of text. In the example below the first line contains the character x. Finally, change the font colour of "x" to match the background colour.

    x

    Title of Report

    I'm interested to know if SAP have fixed this in the latest build of Crystal. As the above is merely a workaround

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      This is a really great easy fix. I'm using Crystal 2013 and there is still no change for this. Thank you for the workaround.

  • avatar image
    Former Member
    Jan 15, 2016 at 05:29 PM

    I know it has been a while but I think I found a suitable fix.

    Add a top border to your text and make it the same color as the background.  It will shift your text down slightly helping it align better to surrounding objects.  Worked for me, and I hope it works for everyone else as well.

    1)Right click the particular object

    2)Click on "Format Editor"

    3)Click on "BorderTab"

    4)Add a single top line style.

    5)Change the color to match the background of the text.

    Add comment
    10|10000 characters needed characters exceeded