Jump to content
Changes to the Jaspersoft community edition download ×

plz, explain about "printWhen" expression


Recommended Posts

By: yumi kim - yumikim

plz, explain about "printWhen" expression

2003-02-13 21:09

in view menu, band's property

I saw "printWhen" expression.

how can I use that??

can I change band's color and background??





By: Mark Rhodes - mrhodes2

RE: plz, explain about "printWhen" expression

2003-02-13 21:35

You can't use to print colors in the band itself, but you can workaroud this. I do this on reports to highlight exceptions, eg: when a variance is too great.


Add a block graphic to the band you want to hilight. Go to edit, send to back. On the properties of the graphcics in the print when add as logical expression. Eg: "new Boolean($F{fieldname}.doubleValue() > .5)" will print the colored box anytime fieldnames value is > .5. Its as simple as that. Hint: don't make your colors too dark or they are hard to read on paper.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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