Jump to content
JasperReports Library 7.0 is now available ×

Custom forecolor name


Recommended Posts

By: iJasper - tmpnfl

Custom forecolor name

2005-04-20 02:32

I am running jasperreports-0.6.6.

I would like to be able to do something like the following in my report to allow dynamic font colors and single point of change.

<parameter name="cust_color" class="java.lang.String"/>

<parameter name="cust_text" class="java.lang.String"/>

.. then in the detail ..

<textField>

<reportElement x="0" y="0" width="200" height="18" forecolor="<![CDATA[$P{cust_color}]]>"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$P{cust_text}]]></textFieldExpression>

</textField>

 

I know there are 13 color names, is there a way to create custom color names ? this would do what I want.

I am a developer if this is not currently possible and it is ok with the community I am happy to put some work into implementing it.

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