Jump to content
Changes to the Jaspersoft community edition download ×

design question


wegnerk

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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