Jump to content

Using Style Library


sugita

Recommended Posts

I am trying to use Style Library in my report.

My requirement is that a perticular feild should have font color as RED if the condition is met else it should have font color as black.

Can someone give me the steps to use style library?

(iReport version used is 3.0.0)

Thanks

 

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thanks Ramesh and Srikanth,

Srikanth,

Can you please help me with the version no and the file location of the samples shipped with the JasperReports.

I tried $F{FieldName}.equals("YourValue"})  ?  "<style forecolor=\'red\'>"+ $F{FieldName}+"</style> " : "<style forecolor=\'black\'>"+ $F{FieldName}+"</style> " but not got the required result.

 

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