Jump to content
We've recently updated our Privacy Statement, available here ×

Alternate row background color


fabridp

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

 

1. Put all the content of your detail band in a frame element (as big as the band, or the section for which you want to set the background.

2. Create a style and add to it a contitioned sub-style with opaque set to false and the background color you want. The condition expression can be something like:

new Boolean($V{PAGE_COUNT}.intValue()%2 == 0)

or (if you use groovy):

$V{PAGE_COUNT}%2 == 0

3. Drag the style over the Frame element (or set the new style for the Frame style property)

Giulio

Link to comment
Share on other sites

  • 3 months later...
  • 5 years later...

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