Jump to content
We've recently updated our Privacy Statement, available here ×

Expression Editor and Font Attributes


throwcode

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...