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

Chang the font of data on some condition


diptypatil

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi ,

Thanks a lot . This is what i have done :

JRDesignStyle style = new JRDesignStyle();
 JRDesignConditionalStyle a = new JRDesignConditionalStyle();
 a.setBackcolor(MyJasperReport.getColor("#666666"));
 style.addConditionalStyle(a);

Can u tell us how do we use if  condition and compare the column value i.e

if(col1 == "Account Type"){

the above condition JRDesignConditionalStyle  i will put here.

}

But how do write the If loop.

Thanks

Dipty.
 

Link to comment
Share on other sites

Hi ,

Thanks a lot . This is what i have done :

JRDesignStyle style = new JRDesignStyle();
 JRDesignConditionalStyle a = new JRDesignConditionalStyle();
 a.setBackcolor(MyJasperReport.getColor("#666666"));
 style.addConditionalStyle(a);

Can u tell us how do we use if  condition and compare the column value i.e

if(col1 == "Account Type"){

the above condition JRDesignConditionalStyle  i will put here.

}

But how do write the If loop.

Thanks

Dipty.
 

Link to comment
Share on other sites

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