2001 JI Open Discussion Posted August 21, 2006 Share Posted August 21, 2006 By: iJasper - tmpnfl Custom forecolor name 2005-04-20 02:32I 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 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