Jump to content
JasperReports Library 7.0 is now available ×

grouped text fields splitting into two pages


rajajasper

Recommended Posts

I am creating a report using iReport 5.6.0  I have report group. When generating pdf group splits in two pages. If not fit in first page it should move whole group to next page but it prints partial in first page and remaing in second page. How to achieve if group not fit in first page then move whole group to second page . Can some body help me how to achievethis. Thanks in advance.

JRXML file is here:

<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreportshttp://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="School Childcare Status Report" language="groovy" pageWidth="650" pageHeight="752" whenNoDataType="AllSectionsNoDetail" columnWidth="610" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="f7dea7ba-a310-4a09-b868-a55cc0b0930f">
    <property name="ireport.zoom" value="1.0"/>
    <property name="ireport.x" value="0"/>
    <property name="ireport.y" value="0"/>
    <style name="boldStyle" fontName="Times New Roman" isItalic="false" isUnderline="true" isStrikeThrough="false" pdfFontName="Times-Roman">
        <conditionalStyle>
            <conditionExpression><![CDATA[$F{isCompliant}.equals("true")]]></conditionExpression>
            <style fontName="Times New Roman" fontSize="10" isItalic="false" isStrikeThrough="false" pdfFontName="Times-Bold"/>
        </conditionalStyle>
    </style>
    <style name="totalStyle" fontName="Times New Roman" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Times-Bold">
        <conditionalStyle>
            <conditionExpression><![CDATA[$F{isCompliant}==true]]></conditionExpression>
            <style fontName="Times New Roman" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Times-Bold"/>
        </conditionalStyle>
    </style>
    <parameter name="reportTitle" class="java.lang.String"/>
    <parameter name="asOfDate" class="java.lang.String"/>
    <parameter name="reportPeriod" class="java.lang.String"/>
    <parameter name="asOfTime" class="java.lang.String"/>
    <parameter name="countyName" class="java.lang.String"/>
    <parameter name="isSchool" class="java.lang.String"/>
    <parameter name="noRecords" class="java.lang.String"/>
    <queryString>
        <![CDATA[select sysdate from dual]]>
    </queryString>
    <field name="buildingName" class="java.lang.String"/>
    <field name="totalStudents" class="java.lang.String"/>
    <field name="completes" class="java.lang.String"/>
    <field name="completesPerc" class="java.lang.String"/>
    <field name="provisionals" class="java.lang.String"/>
    <field name="provisionalsPerc" class="java.lang.String"/>
    <field name="medWaivers" class="java.lang.String"/>
    <field name="medWaiversPerc" class="java.lang.String"/>
    <field name="religWaivers" class="java.lang.String"/>
    <field name="religWaiversPerc" class="java.lang.String"/>
    <field name="otherWaivers" class="java.lang.String"/>
    <field name="otherWaiversPerc" class="java.lang.String"/>
    <field name="waivers" class="java.lang.String"/>
    <field name="waiversPerc" class="java.lang.String"/>
    <field name="compliance" class="java.lang.String"/>
    <field name="compliancePerc" class="java.lang.String"/>
    <field name="isCompliant" class="java.lang.String"/>
    <field name="grade" class="java.lang.String"/>
    <field name="type" class="java.lang.String"/>
    <field name="typeName" class="java.lang.String"/>
    <field name="pageBreak" class="java.lang.String"/>
    <field name="isUnderLine" class="java.lang.String"/>
    <field name="header" class="java.lang.String"/>
    <group name="grade">
        <groupExpression><![CDATA[$F{buildingName}+$F{grade}]]></groupExpression>
    </group>
    <pageHeader>
        <band height="86">
            <textField isBlankWhenNull="true">
                <reportElement x="2" y="29" width="607" height="18" uuid="a1895a89-5e3f-44b6-bbc9-651e85c905be"/>
                <textElement textAlignment="Center">
                    <font fontName="Times New Roman" size="14" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{reportTitle}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="568" y="10" width="25" height="20" uuid="f8d651b9-1466-43f4-af26-cc9b8ed01b35"/>
                <textElement verticalAlignment="Middle">
                    <font fontName="Times New Roman" isBold="true" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[Page:]]></text>
            </staticText>
            <staticText>
                <reportElement x="2" y="10" width="103" height="18" uuid="900c7f0d-d907-489a-a03d-29c583515ae6"/>
                <textElement verticalAlignment="Middle" markup="none">
                    <font fontName="Times New Roman" size="14" isBold="false" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[summary as of:]]></text>
            </staticText>
            <textField isBlankWhenNull="true">
                <reportElement x="593" y="10" width="15" height="20" uuid="a7738178-a4d7-4b76-871f-816a247d4b82"/>
                <textElement verticalAlignment="Middle">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$V{PAGE_NUMBER}.intValue()]]></textFieldExpression>
            </textField>
            <textField isBlankWhenNull="true">
                <reportElement x="5" y="47" width="604" height="18" uuid="1b363777-aed4-4b33-8f80-dd01e80ec735"/>
                <textElement textAlignment="Center">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{reportPeriod}]]></textFieldExpression>
            </textField>
            <textField pattern="MM/dd/yyyy" isBlankWhenNull="true">
                <reportElement x="2" y="27" width="103" height="18" uuid="5388ecba-a9ae-4ea3-ae3e-3b3904718673"/>
                <textElement>
                    <font fontName="Times New Roman" size="14" isBold="false" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{asOfDate}]]></textFieldExpression>
            </textField>
            <textField pattern="" isBlankWhenNull="true">
                <reportElement x="2" y="43" width="103" height="18" uuid="d700c359-15d4-4388-a4d9-0220f4af4aaf"/>
                <textElement>
                    <font fontName="Times New Roman" size="14" isBold="false" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{asOfTime}]]></textFieldExpression>
            </textField>
            <textField pattern="" isBlankWhenNull="true">
                <reportElement x="2" y="65" width="433" height="18" uuid="f1d33ed9-792c-4a12-90a5-c4a647b348fc"/>
                <textElement>
                    <font fontName="Times New Roman" size="14" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{countyName}]]></textFieldExpression>
            </textField>
        </band>
    </pageHeader>
    <columnHeader>
        <band height="27">
            <staticText>
                <reportElement x="231" y="0" width="35" height="17" uuid="048db190-42df-4a97-a0d0-73c8e0d4b764"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[stud
]]></text>
            </staticText>
            <staticText>
                <reportElement x="230" y="12" width="35" height="14" uuid="fbf76d65-33fa-4a7f-b930-02557a301721"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[  #

]]></text>
            </staticText>
            <staticText>
                <reportElement x="265" y="12" width="46" height="14" uuid="2359f881-aeb3-4396-b794-43b52f6c0f14"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[ #    %  ]]></text>
            </staticText>
            <staticText>
                <reportElement x="264" y="0" width="45" height="17" uuid="a0041dce-766b-4ac5-8407-a003ff32d810"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[Comp]]></text>
            </staticText>
            <staticText>
                <reportElement x="307" y="12" width="46" height="14" uuid="38ff762a-5904-4904-9436-08b09b6d8ea3"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[ #     %  ]]></text>
            </staticText>
            <staticText>
                <reportElement x="307" y="1" width="45" height="17" uuid="f70650b7-0766-43ef-8106-0d73dc66db0d"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[Prov]]></text>
            </staticText>
            <staticText>
                <reportElement x="356" y="12" width="50" height="14" uuid="efb4523f-072f-4b22-b0fc-0c2412e35eb4"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[ #     %  ]]></text>
            </staticText>
            <staticText>
                <reportElement x="356" y="0" width="50" height="17" uuid="c87dfadc-0e9f-4706-89e3-16225b66f7a7"/>
                <textElement verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[Waiv-M]]></text>
            </staticText>
            <staticText>
                <reportElement x="406" y="12" width="50" height="14" uuid="48f74357-2550-49fb-87e6-a02d3c2f2bc6"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[ #     %  ]]></text>
            </staticText>
            <staticText>
                <reportElement x="408" y="0" width="50" height="17" uuid="802009c2-b568-45dd-acbc-0a9bd4452782"/>
                <textElement verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[Waiv-R]]></text>
            </staticText>
            <staticText>
                <reportElement x="456" y="0" width="50" height="17" uuid="e3930bd9-5535-4f46-a09f-a89d27564fa9"/>
                <textElement verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[Waiv-O]]></text>
            </staticText>
            <staticText>
                <reportElement x="456" y="12" width="50" height="14" uuid="81555c64-98c3-4b5a-bec2-d1e1790ab3fb"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[ #     %  ]]></text>
            </staticText>
            <staticText>
                <reportElement x="504" y="12" width="52" height="14" uuid="8a2462ab-a4ba-4db3-86d2-43f0ad7ed682"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[ #     %  ]]></text>
            </staticText>
            <staticText>
                <reportElement x="504" y="0" width="52" height="17" uuid="e8b82a7f-35b4-4310-95a0-76cf347397f3"/>
                <textElement verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[Waivers]]></text>
            </staticText>
            <staticText>
                <reportElement x="557" y="12" width="52" height="14" uuid="2856da64-6b23-472e-8ae1-683dd84e6c65"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[ #     %  ]]></text>
            </staticText>
            <staticText>
                <reportElement x="554" y="0" width="73" height="17" uuid="77d4044e-6419-4563-a084-a5606d83024a"/>
                <textElement verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[Compliance]]></text>
            </staticText>
            <staticText>
                <reportElement x="198" y="0" width="35" height="17" uuid="85153a4a-1725-4b06-90da-c1b4be2fc049"/>
                <textElement textAlignment="Center" verticalAlignment="Top">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[Grade]]></text>
            </staticText>
        </band>
    </columnHeader>
    <detail>
        <band height="29" splitType="Stretch">
            <textField pattern="" isBlankWhenNull="true">
                <reportElement style="totalStyle" positionType="Float" isPrintRepeatedValues="false" x="5" y="17" width="193" height="12" uuid="1d62ec98-749f-4dfa-b95e-ac575c173731"/>
                <textElement verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{isCompliant}.equals("true") && $F{isUnderLine}.equals("true") ) ? "<style isBold='true' isUnderline='true' pdfFontName='Times-Bold'>"+ $F{buildingName}+"</style>" : (new java.lang.Boolean($F{isCompliant}.equals("true") && $F{isUnderLine}.equals("false"))) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{buildingName}+"</style>" :  $F{buildingName})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="230" y="16" width="35" height="13" uuid="5b28082c-47e5-4e9b-a9d6-5c6f23696498"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{totalStudents}+"</style>" : $F{totalStudents})]]></textFieldExpression>
            </textField>
            <break>
                <reportElement x="0" y="16" width="100" height="1" uuid="238c0334-5bae-496d-b305-c2c33d851650">
                    <printWhenExpression><![CDATA[$F{pageBreak}.equals("true")]]></printWhenExpression>
                </reportElement>
            </break>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="262" y="16" width="35" height="13" uuid="20adca97-dc18-458f-ad10-c991db6ecda6"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{completes}+"</style>" : $F{completes})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="288" y="16" width="30" height="13" uuid="d505643b-d007-40c9-8b94-ec98b301ecc6"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{completesPerc}+"</style>" : $F{completesPerc})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="332" y="16" width="30" height="13" uuid="0104936e-510a-4549-b88f-aa905fe05fb6"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{provisionalsPerc}+"</style>" : $F{provisionalsPerc})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement style="totalStyle" positionType="Float" x="318" y="16" width="200" height="13" uuid="0ef1498b-2aba-4595-8fec-ab8108adf291"/>
                <textElement verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T") || $F{isUnderLine}.equals("false")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{provisionals}+"</style>" : $F{provisionals})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="380" y="16" width="30" height="13" uuid="fdb94533-5585-4e9e-9a35-7ccd3b33aecb"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{medWaiversPerc}+"</style>" : $F{medWaiversPerc})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="355" y="16" width="30" height="13" uuid="8c11bf78-88ff-49e9-8d0a-c63e91c0aa08"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{medWaivers}+"</style>" : $F{medWaivers})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="430" y="16" width="30" height="13" uuid="eb03761f-2768-4152-944b-52ebbcda17e8"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{religWaiversPerc}+"</style>" : $F{religWaiversPerc})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="405" y="16" width="30" height="13" uuid="1e257473-4890-4770-8f59-5168aa82fd0e"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{religWaivers}+"</style>" : $F{religWaivers})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="479" y="16" width="30" height="13" uuid="4c265423-33c0-4084-910a-011c28e9b3d9"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{otherWaiversPerc}+"</style>" : $F{otherWaiversPerc})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="455" y="16" width="30" height="13" uuid="9dabf832-0dbc-4140-b65d-beb8e65d7b5a"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{otherWaivers}+"</style>" : $F{otherWaivers})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="531" y="16" width="30" height="13" uuid="64e850cc-8dbf-451a-aaf0-7a53eb447530"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{waiversPerc}+"</style>" : $F{waiversPerc})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="505" y="16" width="30" height="13" uuid="ec1d93e9-97bf-4d92-9a2c-e8bb69237498"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{waivers}+"</style>" : $F{waivers})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="585" y="16" width="25" height="13" uuid="9224a272-480e-4c85-a19b-887db4aff9b0"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{compliancePerc}+"</style>" : $F{compliancePerc})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="557" y="16" width="35" height="13" uuid="5fd46605-9d7f-40e0-92eb-bf0c45937541"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{compliance}+"</style>" : $F{compliance})]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement positionType="Float" x="208" y="16" width="20" height="13" uuid="0cbca850-d9d9-4489-823b-e28ed4dfa9c3"/>
                <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
                    <font fontName="Times New Roman" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[(new java.lang.Boolean($F{grade}.equals("T")) ? "<style isBold='true' pdfFontName='Times-Bold'>"+ $F{grade}+"</style>" : $F{grade})]]></textFieldExpression>
            </textField>
            <textField pattern="" isBlankWhenNull="true">
                <reportElement x="2" y="0" width="121" height="15" isRemoveLineWhenBlank="true" uuid="1c250aae-56dc-4ee7-9abb-881bd39e9b65"/>
                <textElement verticalAlignment="Bottom">
                    <font fontName="Times New Roman" size="12" isBold="true" isUnderline="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[($F{type}==null || $F{type}.equals("")) ?"":$F{type}]]></textFieldExpression>
            </textField>
            <textField pattern="" isBlankWhenNull="true">
                <reportElement x="123" y="0" width="421" height="15" isRemoveLineWhenBlank="true" uuid="8a47ffa8-fe84-4be0-a1de-7d6e42a67393"/>
                <textElement verticalAlignment="Bottom">
                    <font fontName="Times New Roman" size="12" isBold="true" isUnderline="false" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[($F{typeName}==null || $F{typeName}.equals("")) ?"":$F{typeName}]]></textFieldExpression>
            </textField>
        </band>
    </detail>
    <summary>
        <band height="15">
            <textField isBlankWhenNull="true">
                <reportElement style="totalStyle" x="0" y="0" width="572" height="15" uuid="9a6e5998-d43a-4ff2-a088-75aacf893a17">
                    <printWhenExpression><![CDATA[new java.lang.Boolean($V{REPORT_COUNT}.intValue()==0)]]></printWhenExpression>
                </reportElement>
                <textElement textAlignment="Center" markup="none">
                    <font fontName="Times New Roman" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA["No "+$P{noRecords}+" Records."]]></textFieldExpression>
            </textField>
        </band>
    </summary>
</jasperReport>
 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...