Expression Editor and Font Attributes

Hi, I would like to provide my users with the ability to define custom headers for predefined reports. Sending the headers as parameters is easy but I would also like to allow them to decide on font size, bold or italic.

My problem is that I do not know how to set the font attributes (size, bold, and italic) dynamically. I can preset the textField property sheet | font tab to some default settings but have not figured out how to override these attributes in an expression statement.

Any assistance would be greatly appreciated.

throwcode's picture
Joined: Mar 17 2008 - 2:15am
Last seen: 15 years 2 months ago

1 Answer:

Using JR < 2.0.5:

Set the textfield text property "styled text" to true. This allows you to use simple html tags like: <u><b><i>.

Using JR >= 2.0.5

There is a new markup attribute for textfields and static texts. This can be set to HTML to be able to format a text using pure HTML tags.


giulio's picture
Joined: Jan 2 2007 - 4:15pm
Last seen: 3 weeks 1 day ago