Skip to content

Infragistics Community Forum / Cross Platform / Ultimate UI for Xamarin / Change font size in report programmatically

Change font size in report programmatically

New Discussion
Robert
Robert asked on Jan 3, 2012 2:22 AM

I have created a report, connected it to a datasource, and displayed it in a report viewer in my WinForm App.

The report is a label and I need to give the operator the ability to dynamically increase / decrease the font size of a textbox to ensure that all data is displayed in a particular text field at the maximum possible font size.

The operator needs to be able to vary this font size on a label by label basis.

Using Netadvantage reporting, is it possible to access the object model of the report, vary the font size of a control and then refresh the display in the reportviewer?

Thanks for your assistance.

Sign In to post a reply

Replies

  • 0
    [Infragistics] Matt Traynor
    [Infragistics] Matt Traynor answered on Dec 27, 2011 10:59 PM

    HI,

     I am reviewing your issue.

     Sincerely,
     Matt
     Developer Support Engineer

  • 0
    Simon De Uvarow
    Simon De Uvarow answered on Dec 28, 2011 12:56 PM

    Hello Bobrog,

    You can bind the FontSize property of the label to a parameter in your report:

    You can change the font size changing that parameter, and then refresh the viewer to apply the changes.

    I'm not sure if this solve what you need.

    Please tell me if it does or if you have any other question.

    regards!

    Simon

    • 0
      Robert
      Robert answered on Jan 3, 2012 2:22 AM

      Hi Simon,

      This was exactly what was required and works as described.

      Thanks very much fo your assistance.

      Regards

      Bob

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Robert
Favorites
0
Replies
3
Created On
Jan 03, 2012
Last Post
14 years, 1 month ago

Suggested Discussions

Tags

Created by

Created on

Jan 3, 2012 2:22 AM

Last activity on

Feb 18, 2026 1:04 PM