wegnerk Posted August 29, 2006 Share Posted August 29, 2006 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 ;) Link to comment Share on other sites More sharing options...
lucianc Posted August 29, 2006 Share Posted August 29, 2006 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 Link to comment Share on other sites More sharing options...
wegnerk Posted August 30, 2006 Author Share Posted August 30, 2006 Hi lucian, thanks a lot for your answer... problem solved after a bit of trial and error ;) i needed a bit time to find out what 'frame' is in german :whistle: regardsPost edited by: wegnerk, at: 2006/08/30 13:47 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now