Last active
August 29, 2015 14:13
-
-
Save jrichardsz/64fbf51838e648c28a76 to your computer and use it in GitHub Desktop.
Report 01 example in Ireport 4.5.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report1" language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> | |
<property name="template.type" value="columnar"/> | |
<style name="Title" forecolor="#000000" fontName="Times New Roman" fontSize="50" isBold="false" pdfFontName="Times-Bold"/> | |
<style name="SubTitle" forecolor="#666666" fontName="Times New Roman" fontSize="18" isBold="false" pdfFontName="Times-Roman"/> | |
<style name="Column header" forecolor="#666666" fontName="Times New Roman" fontSize="14" isBold="true" pdfFontName="Times-Roman"/> | |
<style name="Detail" mode="Transparent" fontName="Times New Roman" pdfFontName="Times-Roman"/> | |
<style name="Row" mode="Transparent" fontName="Times New Roman" pdfFontName="Times-Roman"> | |
<conditionalStyle> | |
<conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression> | |
<style mode="Opaque" backcolor="#F0EFEF"/> | |
</conditionalStyle> | |
</style> | |
<group name="Group1"> | |
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/15)]]></groupExpression> | |
<groupHeader> | |
<band height="31"> | |
<frame> | |
<reportElement mode="Opaque" x="0" y="7" width="555" height="24" forecolor="#B89F7D" backcolor="#9DB1B8"/> | |
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> | |
<reportElement style="SubTitle" isPrintRepeatedValues="false" x="2" y="1" width="479" height="23" forecolor="#FFFFFF"/> | |
<textElement> | |
<font isBold="false"/> | |
</textElement> | |
<textFieldExpression><![CDATA["GroupField"]]></textFieldExpression> | |
</textField> | |
</frame> | |
</band> | |
</groupHeader> | |
<groupFooter> | |
<band height="6"/> | |
</groupFooter> | |
</group> | |
<group name="Group2"> | |
<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/5)]]></groupExpression> | |
<groupHeader> | |
<band height="24"> | |
<textField isBlankWhenNull="true"> | |
<reportElement positionType="Float" x="0" y="4" width="299" height="20" forecolor="#000000"/> | |
<textElement> | |
<font fontName="Times New Roman" size="16" isBold="false"/> | |
</textElement> | |
<textFieldExpression><![CDATA["GroupField"]]></textFieldExpression> | |
</textField> | |
</band> | |
</groupHeader> | |
</group> | |
<background> | |
<band splitType="Stretch"/> | |
</background> | |
<title> | |
<band height="132" splitType="Stretch"> | |
<image> | |
<reportElement x="2" y="0" width="118" height="132"/> | |
<imageExpression><![CDATA["tree1.png"]]></imageExpression> | |
</image> | |
<staticText> | |
<reportElement style="Title" x="120" y="10" width="435" height="93"/> | |
<textElement> | |
<font size="80" isBold="false"/> | |
</textElement> | |
<text><![CDATA[Tree Title]]></text> | |
</staticText> | |
<staticText> | |
<reportElement style="SubTitle" x="336" y="103" width="217" height="29"/> | |
<textElement> | |
<font size="22" isBold="false"/> | |
</textElement> | |
<text><![CDATA[Tree SubTitle]]></text> | |
</staticText> | |
</band> | |
</title> | |
<pageHeader> | |
<band splitType="Stretch"/> | |
</pageHeader> | |
<columnHeader> | |
<band splitType="Stretch"/> | |
</columnHeader> | |
<detail> | |
<band height="91" splitType="Stretch"> | |
<staticText> | |
<reportElement style="Column header" positionType="Float" x="79" y="0" width="132" height="20" forecolor="#000000"/> | |
<textElement textAlignment="Right"> | |
<font isBold="false"/> | |
</textElement> | |
<text><![CDATA[Label]]></text> | |
</staticText> | |
<image> | |
<reportElement x="2" y="0" width="56" height="80"/> | |
<imageExpression><![CDATA["tree2.png"]]></imageExpression> | |
</image> | |
<line> | |
<reportElement positionType="FixRelativeToBottom" x="2" y="90" width="551" height="1"/> | |
</line> | |
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> | |
<reportElement style="Detail" positionType="Float" x="215" y="0" width="338" height="18"/> | |
<textElement> | |
<font size="14" isBold="true" pdfFontName="Times-Bold"/> | |
</textElement> | |
<textFieldExpression><![CDATA["Field"]]></textFieldExpression> | |
</textField> | |
</band> | |
</detail> | |
<columnFooter> | |
<band height="7" splitType="Stretch"> | |
<line> | |
<reportElement positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1"/> | |
<graphicElement> | |
<pen lineWidth="0.5" lineColor="#999999"/> | |
</graphicElement> | |
</line> | |
</band> | |
</columnFooter> | |
<pageFooter> | |
<band height="13" splitType="Stretch"> | |
<frame> | |
<reportElement mode="Opaque" x="2" y="0" width="555" height="13" forecolor="#D0B48E" backcolor="#9DB1B8"/> | |
<textField evaluationTime="Report"> | |
<reportElement style="Column header" x="513" y="-1" width="40" height="13" forecolor="#FFFFFF"/> | |
<textElement verticalAlignment="Middle"> | |
<font size="10" isBold="false"/> | |
</textElement> | |
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> | |
</textField> | |
<textField> | |
<reportElement style="Column header" x="433" y="-1" width="80" height="13" forecolor="#FFFFFF"/> | |
<textElement textAlignment="Right" verticalAlignment="Middle"> | |
<font size="10" isBold="false"/> | |
</textElement> | |
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> | |
</textField> | |
<textField pattern="EEEEE dd MMMMM yyyy"> | |
<reportElement style="Column header" x="2" y="0" width="197" height="13" forecolor="#FFFFFF"/> | |
<textElement verticalAlignment="Middle"> | |
<font size="10" isBold="false"/> | |
</textElement> | |
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> | |
</textField> | |
</frame> | |
</band> | |
</pageFooter> | |
<summary> | |
<band splitType="Stretch"/> | |
</summary> | |
</jasperReport> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment