Jump to content
JasperReports Library 7.0 is now available ×

Style bug in iReports? Or is it me!?


2006 IR Open Dicussion

Recommended Posts

By: MaGaM - maganz

Style bug in iReports? Or is it me!?

2006-03-13 02:47

For 2 weeks ago I started with the use of iReport and JasperReports 1.2.0. Having found the style option in menu 'View' I added some styles. Now I find out that when applying a style to a text field and saving the template, the text element tag is not closed with '>'. The <textElement> tag is nested in the <textField> tag. It's like this: <textElement textAlignment="Left" verticalAlignment="Top" As you can see it's not closed. Has anyone else encountered this problem? Am I doing something wrong or is this a bug in the XML-writer during saving?

 

Thanks in advance for your reaction(s)!

 

 

 

 

By: Wal Millard - walmillard

RE: Style bug in iReports? Or is it me!?

2006-03-14 19:41

MaGam,

 

You need to dereference the " character with

 

like this:

 

<textElement textAlignment="Left" verticalAlignment="Top">

 

here is another example of a Field Object:

 

$F{MyField}.booleanValue()?("Print this if <style pdfFontName="Helvetica-Bold">TRUE</style>"):("Print this if <style pdfFontName="Helvetica-Bold">FALSE</style>")

 

'Prints this if TRUE' or 'Prints this if FLASE' in bold based on the value of the boolean Field MyField.

 

luck

walmillard

 

 

 

 

By: Giulio Toffoli - gt78

RE: Style bug in iReports? Or is it me!?

2006-03-20 01:22

If it was a bug, now it's fixed.

 

Giulio

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