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

Possible Style Attribute Bug


redwine

Recommended Posts

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:22

http://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:

pdfFontName
Indicates 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, ZapfDingbats
Source:
JasperReports for Java Developers
2006 Packt Publishing
page 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:23

Post edited by: edwin, at: 2007/05/08 19:47

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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