aihtnyc Posted June 9, 2014 Share Posted June 9, 2014 Hi! I´m trying to set lineColor, to a frame , dynamically.I know I´ve to set the <propertyExpression name="net.sf.jasperreports.style.box...><![CDATA[$F{my_field}]]></propertyExpression>, but I´ve tried with all propertyExpression possible.How can I do it?This is my frame code:<frame> <reportElement mode="Opaque" x="0" y="0" width="520" height="20" uuid="ad07ad42-3f35-4be6-a6d1-96a04dd115e7"><property name="local_mesure_unitheight" value="pixel"/><property name="com.jaspersoft.studio.unit.height" value="px"/><propertyExpression name="net.sf.jasperreports.style.box.pen.lineColor"><![CDATA[$F{my_field}]]></propertyExpression><propertyExpression name="net.sf.jasperreports.style.backcolor"><![CDATA[$F{field_one}]]></propertyExpression></reportElement><box><pen lineWidth="0.5"/><topPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><bottomPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><rightPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/></box></frame> Thanks! Link to comment Share on other sites More sharing options...
bertrand.daru Posted May 22, 2019 Share Posted May 22, 2019 Hello,curiously, the way to change the border color is to set the foreground property :use the property "net.sf.jasperreports.style.forecolor" 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