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

RE: Problem with printWhenExpression


bpamarti

Recommended Posts

Hi Group:

 

I have created a report where I want one of the columns (say col3) to be printed in a blue bold font when certain condition is satisfied else I want them to be printed in normal black font.  

 

I have included the following expression in the <printWhenExpression> tag in the <reportElement> tag....

 

new Boolean(!($F{col1}.equalsIgnoreCase("N/A")) && !($F{col2}.equalsIgnoreCase("N/A")))

 

When I run the report only those values which qualify for the above expression are printed and the rest are not printed in the report and left blank....

 

Am I missing something here....?

 

Regards,

BalaKishore

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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