Jump to content
JasperReports Library 7.0 is now available ×

How to use printWhenExpression in bands...


2005 IR Help

Recommended Posts

By: Gil Frm Mla - gmacabuag

How to use printWhenExpression in bands...

2004-08-27 10:18

Good day everyone. Does anyone here know how to use the printWhenExpression attribute on bands? Im making a report which has multiple pages. and i want certain condition on my bands. for example, i only want the pageHeader to be shown on a specific page number.

 

here's a sample of my expression

 

$V{PAGE_NUMBER} > 1

 

 

 

 

 

 

By: Franco Weichel - franco_weichel

RE: How to use printWhenExpression in bands..

2004-09-03 05:23

Hi,

 

your expression must return a Boolean (Object) and not a boolean (Primitive) .

 

so try

 

Boolean.valueOf($V{PAGE_NUMBER} > 1)

 

Franco

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