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

Reporting on HTML Data


Recommended Posts

  • 8 months later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Hi

I have a similar issue i.e. data in the DB has HTML markup that I would like to either be suppressed or used effectively for its intended purpose e.g. <B> becomes bold in the report(ideally) .

 

Is there a way to get this done in jasper for the PDF and HTML report

 

Randy

Link to comment
Share on other sites

Hi,

 

It depends on what HTML tags it contains and if it is well-formatted XHTML. Have you tried to set isStyledText="true" on your text field?

 

Note that styled text in JR only supports a limited set of HTML tags. Check the /demo/samples/styledtext sample provided for a list of supported tags.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

  • 1 year later...

i have a related question.

thanks for the styledtext reference - it is very helpful.

i applied what i found in that example and HTML and PDF format both display the correct stylized text.

 

my issue is that i am trying to apply those styles in XLS format as well.

[really just want to apply isBold]

 

is there something unique that i have to set/configure for styledtext to work in XLS format?

 

thanks,

/mt

 

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