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

Change font size at runtime

3 Answers 654 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 23 Oct 2011, 04:08 PM
Hi,

I'm investigating the possibility of using Telerik Reporting for a solution I'm developing.

Part of the report (invoice) needs to be re sizable to keep things looking as the client says 'professional' I can do this in one of two ways:
a) Duplicate the report for each font size I want to replicate
b) Alter the font size of specific report areas at runtime based injected parameter (conditional formating) or via the code that launches the report (instantiate a report object and twiddle with it's object model)

Obviously I would like to avoid option a as it generates duplication in the code :(

Is option b possible using either conditional formating or via tweaking of the report object?

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Oct 2011, 02:59 PM
Hello Andrew,

Yes you can either use Conditional Formatting or Bindings for the Font property. Both approaches are correct, but note the TextBox would not grow horizontally to accommodate the increased font, so plan your layout accordingly.

Greetings,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

0
Andrew
Top achievements
Rank 1
answered on 25 Oct 2011, 04:08 PM
Hi,
Thanks for the confirmation.
I'm guessing that while the text box would not grow horizontally it would (as I guess it would for content loaded from the db) format the text wrapping where needed and then allowing the text box to grow vertically, would this be correct?

Again thanks for the reply
0
Steve
Telerik team
answered on 27 Oct 2011, 03:26 PM
Hi Andrew,

Yes, the textbox would grow vertically only and your data would be wrapped according to the new font size.

Regards,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Steve
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or