bpamarti Posted September 24, 2008 Share Posted September 24, 2008 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 More sharing options...
dnvsrikanth Posted September 25, 2008 Share Posted September 25, 2008 Hi BalaKishore,Use Styles/Conditional Styles instead of printWhenExpression for achieving your task.DNV Srikanth. Link to comment Share on other sites More sharing options...
bpamarti Posted September 25, 2008 Author Share Posted September 25, 2008 Thanks Srikanth,It works as desired... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now