Hi,
is it possible, to give differing groups different backgroundcolors? So, i have a list of monthly values, grouped by year, and i want to have for every second year another backgroundcolor, grey for example.
I work with IReport...
and sorry for my english mistakes, i'm a bit out of training ;)
is it possible, to give differing groups different backgroundcolors? So, i have a list of monthly values, grouped by year, and i want to have for every second year another backgroundcolor, grey for example.
I work with IReport...
and sorry for my english mistakes, i'm a bit out of training ;)
2 Answers:
Posted on August 29, 2006 at 2:35pm
It's possible by using conditional styles (introduced in JR 1.2.0).
What you need to do is:
-create a variable which increments by one for each year group
-create a style which specifies a grey background when this variable is even
-apply this style to a frame inside which you place all the report elements in the detail band (or apply it to a rectangle placed behind the elements in the detail band if you don't want Html or Excel output).
You can take a look at the "scriptlet" sample in the JR distribution to see something similar.
HTH,
Lucian
What you need to do is:
-create a variable which increments by one for each year group
-create a style which specifies a grey background when this variable is even
-apply this style to a frame inside which you place all the report elements in the detail band (or apply it to a rectangle placed behind the elements in the detail band if you don't want Html or Excel output).
You can take a look at the "scriptlet" sample in the JR distribution to see something similar.
HTH,
Lucian