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

Dynamic Text Size

3 Answers 443 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 25 Jan 2012, 03:17 PM
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.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 Jan 2012, 04:56 PM
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!

0
Rod
Top achievements
Rank 1
answered on 13 Aug 2018, 11:26 PM
Seagull Bartender have been able to do this for years and is an indispensable feature. Cmon guys, join the twentieth century.....
0
Nasko
Telerik team
answered on 16 Aug 2018, 01:20 PM
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
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Peter
Telerik team
Rod
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or