Jump to content
Changes to the Jaspersoft community edition download ×

HTML Label in Text Field


Recommended Posts

How can I know what HTML labels are available inside a Text Field?

I mean, some data I've got in my database is with HTML labels. This data is associated to a Text field in the template. When the PDF file is created, sometimes it's displayed well and sometimes it's displayed as HTML string this data.


What could I do to avoid this problem?


Thanks in advance!


Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic



I assume your text field has isStyledText="true".

But if the HTML content that you get from your database is not a well-formated XML (XHTML), then it will not be parsed successfully by JR and hence it would fail to display as styled text.

Also, for a complete list of supported HTML tags, see the /demo/samples/styledtext sample.


I hope this helps.


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...