2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: joepsol - joepsol Display HTML formatted string in PDF 2006-08-15 12:04How 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:01JasperReports 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:23Now 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:08JasperReports supports a few common HTML tags starting from 1.0.1 Ionut Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now