<band height="742" splitType="Stretch"> <line> <reportElement x="0" y="0" width="515" height="1"/> </line> <staticText> <reportElement x="0" y="10" width="515" height="30"/> <textElement textAlignment="Center"> <font size="22"/> </textElement> <text><![CDATA[Groovy Sample]]></text> </staticText> <textField hyperlinkType="Reference" hyperlinkTarget="Blank"> <reportElement x="0" y="50" width="515" height="50"/> <textElement textAlignment="Center"> <font size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["This sample uses Groovy Version 1.0 beta 10\n" + "http://groovy.codehaus.org/"]]></textFieldExpression> <hyperlinkReferenceExpression><![CDATA["http://groovy.codehaus.org/"]]></hyperlinkReferenceExpression> </textField> <textField> <reportElement x="280" y="150" width="200" height="35"/> <textElement> <font size="24"/> </textElement> <textFieldExpression class="java.lang.Double"><![CDATA[$P{A}]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" x="0" y="150" width="259" height="35"/> <textElement textAlignment="Right"> <font size="24"/> </textElement> <text><![CDATA[A =]]></text> </staticText> <staticText> <reportElement positionType="Float" x="0" y="190" width="259" height="35"/> <textElement textAlignment="Right"> <font size="24"/> </textElement> <text><![CDATA[B =]]></text> </staticText> <textField> <reportElement x="280" y="190" width="200" height="35"/> <textElement> <font size="24"/> </textElement> <textFieldExpression class="java.lang.Double"><![CDATA[$P{B}]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" x="0" y="230" width="259" height="35"/> <textElement textAlignment="Right"> <font size="24"/> </textElement> <text><![CDATA[Java A + B =]]></text> </staticText> <textField> <reportElement x="280" y="230" width="200" height="35" forecolor="#FF0000"/> <textElement> <font size="24"/> </textElement> <textFieldExpression class="java.lang.Double"><![CDATA[new Double($P{A}.doubleValue() + $P{B}.doubleValue())]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" x="0" y="270" width="259" height="35"/> <textElement textAlignment="Right"> <font size="24"/> </textElement> <text><![CDATA[Groovy A + B =]]></text> </staticText> <textField> <reportElement x="280" y="270" width="200" height="35" forecolor="#008000"/> <textElement> <font size="24"/> </textElement> <textFieldExpression class="java.lang.Double"><![CDATA[$P{A} + $P{B}]]></textFieldExpression> </textField> </band>