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.
TC
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.
TC
1 Answer:
Posted on March 17, 2008 at 6:42pm
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.
Thanks
giulio
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.
Thanks
giulio