Vertical text alignment in Crystal Reports?

前端 未结 5 1382
无人及你
无人及你 2021-01-17 07:44

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

5条回答
  •  醉梦人生
    2021-01-17 07:44

    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

提交回复
热议问题