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

rpachipu

Community Manager
  • Posts

    75
  • Joined

  • Last visited

  • Days Won

    2

Community Answers

  1. rpachipu's post in Error iReport was marked as the answer   
    Hi, 
    You set the on error type property to icon instead of error, so that the report generation wont broke and you can easily identify which image is causing the issue.

  2. rpachipu's post in How to use one field to add a backcolor of another using conditionalStyle was marked as the answer   
    Hi Jacob, if you want to use one field to add a backcolor of another , you can easily do this by adding property to your textfield than by conditional style.
    1. Making the texfiled opaque.
    2. appling net.sf.jasperreports.style.backcolor to the textfield.
    For eg: Where as c2 field will have  hex color code.
    <textField>
    <reportElement mode="Opaque" x="127" y="1" width="73" height="30" uuid="41cbd2d7-7379-400f-95a7-bee3824834db">
    <propertyExpression name="net.sf.jasperreports.style.backcolor"><![CDATA[$F{col2}]]></propertyExpression>
    </reportElement>
    <textElement textAlignment="Center" verticalAlignment="Middle"/>
    <textFieldExpression><![CDATA[$F{col2}]]></textFieldExpression>
    </textField>
     
×
×
  • Create New...