on 09-27-2007 3:29 AM
Hello,
I am new to Crystal Reports and want to do something as simple as vertically aligning text in a text box. When I go to Format Field all I see is Horizontal alignment.
Is there an easy way to do this?
Thanks in advance!!
Ron
Maybe I'm misinterpreting your question but.... you can right click on the text box and under the common tab there should be an option called 'Text Rotation'. You should be able to vertically alighn your text using the 90 degree choice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry but nothing is simple. Vertically align text (meaning the direction of the text) is not possible. In charts it will be automatically done but in text boxes it is not possible.
Femke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you are correct that this is not simple. however, there is a workaround using a formula instead of a text object.
1) can create a formula that will loop through the database field or string and insert a chr(10) after each character. in the code below just substitute the customer name field for your field or stringvar.
stringvar vfield:= {Customer.Customer Name};
numbervar l:= length(vfield);
while numbervar i < l do
(
i:= i + 1;
stringvar output:= output + vfield<i> + chr(10);
);
output
2) format the formula as a fixed width font such as Lucida Console
3) format the formula so that Can Grow is turned on.
this will work in the designer and in any of the report viewers.
jw
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.