Jump to content
JasperReports Library 7.0 is now available ×

Display HTML formatted string in PDF


Recommended Posts

By: joepsol - joepsol

Display HTML formatted string in PDF

2006-08-15 12:04

How do I display a string with HTML formatting in PDF?

 

An example string field value is:

 

<p>Paragraph 1</p><p /><p>This is paragraph 2.</p><blockquote dir="ltr" style="MARGIN-RIGHT: 0px"><p>End.</p></blockquote>

 

I want to display this without the tags and retain the proper formatting in PDF.

 

Thanks,

Joey

 

 

By: Ionut Nedelcu - ionutned

RE: Display HTML formatted string in PDF

2006-08-16 00:01

JasperReports only supports a limited set of HTML formatting, as shown in the styledtext sample. Also, you must remember to set the isStyledText attribute to true in your text field if you want the engine to parse those tags.

 

Ionut

 

 

By: joepsol - joepsol

RE: Display HTML formatted string in PDF

2006-08-16 14:23

Now I just need to upgrade the JasperReports (0.6.1) that I'm using. Formatting with <style> works but HTML tags do not work in my old version.

What version of JasperReports did HTML tags get implemented?

 

Thanks,

Joey

 

 

By: Ionut Nedelcu - ionutned

RE: Display HTML formatted string in PDF

2006-08-17 06:08

JasperReports supports a few common HTML tags starting from 1.0.1

 

Ionut

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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