This is a migrated thread and some comments may be shown as answers.

Textbox alignment issue

2 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
cheekl
Top achievements
Rank 2
cheekl asked on 12 Nov 2007, 03:47 AM
I have a fied containing description. Length of field is varchar(100). However do not want to create a textbox width that can allocate 100 chars. So I create textbox width(50 chars) with can grow set to true and can shink set to false. However, the text box break into few lines instead of 2 lines. Which means the textbox width is reduced (less than 50 chars)
Anything I need to do to avoid this?

2 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 12 Nov 2007, 09:58 AM
Hi cheekl,

The way the text inside a TextBox item is rendered depends on several things. The most important one is the output format - Image, PDF, HTML, CSV, etc. In what format you experience the mentioned problem? The second thing is its font - what font and size you have set for the the TextBox item; The third and also very important thing you should have in mind is the size of the item. Also any border or padding can shrink the area where the TextBox renders its content.

As far as Telerik Reporting is concerned one can specify any dimension in millimeters (mm), centimeters (cm), inches,  points (pt) and picas (pc; 1 PostScript pica is 1/6 inch or 12 points) (ref. Telerik.Reporting.Drawing.UnitType enumeration) and there is no unit as characters.

So having the above in mind, the only advice we can give you is to take a look at the accompanying examples and then by some trials and errors you have to find the best configuration for your TextBoxes.

I hope this information helps. Thank you.

All the best,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
cheekl
Top achievements
Rank 2
answered on 13 Nov 2007, 04:24 AM
I managed to discover the problem. Whenever the report viewer size is smaller than the report size. The alignment will be out when the text box grow.
Tags
General Discussions
Asked by
cheekl
Top achievements
Rank 2
Answers by
Svetoslav
Telerik team
cheekl
Top achievements
Rank 2
Share this question
or