Dynamic Text Size

4 posts, 0 answers
  1. Kevin
    Kevin avatar
    9 posts
    Member since:
    Jan 2012

    Posted 25 Jan 2012 Link to this post

    We are evaluating Telerik Reporting for various reporting scenarios.  In one of the meetings it was asked if there was a way to set a textbox of a specific size (cangrow = false, canshrink=false, and the area being used is set appropriately) and have the size of the text automatically determined so that all of the text can be displayed within the defined area at the greatest possible font size.

    From what I can tell there is not an easy way to accomplish this but I might be able to define a number of conditional rules to the textbox that check the length of the text and apply an appropriate style.  While this would work I don't think that it is the easy solution they are looking for.  This would be more of a trial and error scenario that could be very time consuming and difficult to maintain.  Is there a better alternative that I am just not seeing.
  2. Peter
    Admin
    Peter avatar
    1641 posts

    Posted 27 Jan 2012 Link to this post

    Hi Kevin,

    Generally by design TextBox item grows vertically to accommodate the text and no out of the box option is available to automatically reduce the font size to accommodate the text without vertical growing. Instead as you have guessed you will have to change dynamically the font size based on the strings length. Additionally our suggestion is to use monospaced font to simplify the font size calculations.

    Kind regards,
    Peter
    the Telerik team

    Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

  3. Rod
    Rod avatar
    4 posts
    Member since:
    May 2014

    Posted 13 Aug in reply to Peter Link to this post

    Seagull Bartender have been able to do this for years and is an indispensable feature. Cmon guys, join the twentieth century.....
  4. Nasko
    Admin
    Nasko avatar
    1021 posts

    Posted 16 Aug Link to this post

    Hello Rod,

    Seagull BarTender is software specifically designed for creating and automating labels and barcodes and then printing them directly to a printer.

    Telerik Reporting is an all round reporting solution with the aim of easy and flexible report building and supporting various export formats such as PDF, Excel, CSV, XPS, etc. The product supports many different report items (Table, List, Graph, PictureBox, CheckBox, TextBox) and it is not straight forward to implement auto sizing of the text elements. Still, you can post a feature request in our Ideas & Feedback portal.

    Regards,
    Nasko
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top