Textbox alignment issue

3 posts, 0 answers
  1. cheekl
    cheekl avatar
    55 posts
    Member since:
    Jul 2012

    Posted 11 Nov 2007 Link to this post

    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. Svetoslav
    Admin
    Svetoslav avatar
    649 posts

    Posted 12 Nov 2007 Link to this post

    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
  3. DevCraft banner
  4. cheekl
    cheekl avatar
    55 posts
    Member since:
    Jul 2012

    Posted 12 Nov 2007 Link to this post

    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.
Back to Top