Quantcast
Channel: FORNAV
Viewing all articles
Browse latest Browse all 372

Rotating a Text Box

$
0
0

The text box and the label controls both have an Angle property that controls the rotation of the control. This means that you can rotate the text in both positive and negative directions.

Getting the desired result can be a bit tricky because the way the rotation is shown in the designer is not the same as the printout. In the designer, you should create a normal text box with the desired height and width. When the report is rendered, this text box is then rotated. Text alignment determines the location of the rotated text. If you specify a Left alignment, then the text is rotated with the left side fixed and vice versa.

This is an example of some left aligned controls in the designer. These controls are rotated at different angels.

And this is what the output looks like. As mentioned, let left side of the box is the anchor of the rotation.

In the next image, you can see some right aligned controls from the designer.

And here the rotation is anchored on the right side of the control.

Here is another example of two center aligned text boxes and a bar code in the designer.

And the result on paper when the report is run.

It will most likely take some playing around before you get the hang of how this feature works.

The post Rotating a Text Box appeared first on ForNAV.


Viewing all articles
Browse latest Browse all 372

Trending Articles