I want to get color to alternate for the rows in a JasperReports subreport. I have all rows with the same background color but I want it to alternate. Can this be done?
相关问题
- DBGrid - How to set an individual background color
- How to apply a function to all combinations of row
- Jasper: error opening input stream from url
- JasperReports Server parameter dependency
- is it possible print element only when its detail
相关文章
- Emacs/xterm color annoyance on Linux
- matplotlib bwr-colormap, always centered on zero
- MeshLab: How to import XYZRGB file
- ChartJS. Change axis line color
- set foreground color in FrameLayout in android pro
- Changing background color for a text annotation to
- Keras: Visualize ImageDataGenerator Output
- How to generate random pastel (or brighter) color
If you are not using "styles", you can have a static text field (with no text) or a rectangle with the background color that you need, overlapping the textfield with data and set the printWhenExpression to
$V{report_COUNT}%2 == 1
OR$V{report_COUNT}%2 == 0
Yes you can set up a style inside the JRXML file like this:
and add it to your report elements like this:
You cannot add conditional styles to style template files (e.g.,
.jrtx
files).