redwine Posted May 9, 2007 Share Posted May 9, 2007 For some reason, the formatting expected from isBold and isItalic don't work in the textField or the staticText elements when a report is generated in PDF. However isUnderline works in both of them. Bug discovered by rclarke88.Refer to the following thread:Different format of text within a single paragraph - 2007/04/18 11:22http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=view&id=24036&catid=9 Tested on iReport versions 1.3.1 and 1.3.3 Current workaround: use pdfFontName attribute Some of the attribute values that can be used used with pdfFontName:pdfFontNameIndicates the name of the font to use if the report is exported to PDF.Courier, Courier-Bold, Courier-BoldOblique, Courier-Oblique, Helvetica, Helvetica Bold, Helvetica BoldOblique, Helvetica Oblique, Times-Roman, Times-Bold, Times-BoldItalic, Times-Italic, Symbol, ZapfDingbatsSource: JasperReports for Java Developers2006 Packt Publishingpage 121 Just note that the formatting will only be seen in a pdf document. If you plan to display your report on the web (I have not done this yet), I'm thinking you should use a different attribute. I will need to post this bug that you found so the developers could fix it.I didn't realize that this attribute didn't work.I'll give you a thumbs up for your discovery.Cool?Do tell me how it goes, ok? Edwin Post edited by: edwin, at: 2007/05/08 17:23Post edited by: edwin, at: 2007/05/08 19:47 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