How to display detail band based on condition in jasper report

How to display detail band based on condition jasper report

tstuser's picture
97
Joined: Oct 21 2018 - 10:35pm
Last seen: 4 years 2 months ago

1 Answer:

You can define printWhenExpression for detail band. For example,

<detail>
    <band height="30" splitType="Stretch">
    <printWhenExpression><![CDATA[<place your condition here>]]></printWhenExpression>
     ...
     ...
 
     ...
    </band>
</detail>
prusyn's picture
3906
Joined: Feb 22 2018 - 3:49am
Last seen: 2 years 7 months ago
Feedback