you could use the markup styled and enclose your text with e.g. "<style color=\"" + $P{color_fg} + "\"> + $F{field_x} + "</style>" or you use the net.sf.jasperreports.style.* properties on your field.
Unfortunately conditional styles are not the solution we are looking for.
Imagine a conditional style, which can be turned on and off. This style should be responsible for coloring a textfield. This texfield should be able to have any color. This style should be used in mutliple reports.
By using conditional styles we would have to create a condition for every possible color.
In combination with a second property this would result in countless styles.
Hi,
you could use the markup styled and enclose your text with e.g.
"<style color=\"" + $P{color_fg} + "\"> + $F{field_x} + "</style>"
or you use thenet.sf.jasperreports.style.*
properties on your field.http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.style.backcolor
Best regards
Unfortunately conditional styles are not the solution we are looking for.
Imagine a conditional style, which can be turned on and off. This style should be responsible for coloring a textfield. This texfield should be able to have any color. This style should be used in mutliple reports.
By using conditional styles we would have to create a condition for every possible color.
In combination with a second property this would result in countless styles.