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

Setting field color dynamically


Recommended Posts

By: Thomas Buehler - thomas_buehler

Setting field color dynamically

2002-10-24 07:49

I like to set the field color dynamically when filling the report data. So i tried to do the following thing: I'm passing a field with name Color which contains the color as String, for Example "#FF0000". In the xml file have done forecolor = $F{Color}, but I got a compiler error.

java.lang.NumberFormatException: For input string: "$F{Color}"

 

What is the best way to pass field color dynamically?

 

Thank you very much.

Thomas

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