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

sdandekar

Members
  • Posts

    1
  • Joined

  • Last visited

sdandekar's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I am using iReport3.5.2 and have a repot where Iwould like to have alternate row colors. I have searched this forum and googled it, found several alternatives. In my case I found that it could be done with styles applied to a frame. However, when I applied it in my report, it did not work either in PDF or on the Excel or RTF outputs. What do I need to do to get the alternate row color? Code: <style name="EvenOddRowStyle" isDefault="false" backcolor="#DFE5FF"> <conditionalStyle> <conditionExpression><![CDATA[new Boolean($V{REPORT_COUNT}.intValue() %2 == 0)]]></conditionExpression> <style isDefault="false"/> </conditionalStyle> </style> <detail> <band height="20"> <frame> <reportElement style="EvenOddRowStyle" x="0" y="0" width="692" height="20"/> <textField isBlankWhenNull="true"> <reportElement x="223" y="0" width="66" height="20" forecolor="#404040" backcolor="#FFFFFF"/> <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled"> <font fontName="Arial" size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{sumItems}]]></textFieldExpression> </textField> </frame> </band> </detail>
×
×
  • Create New...