Created
March 23, 2015 08:11
-
-
Save charithsoori/e3f930b6832243fc4f64 to your computer and use it in GitHub Desktop.
jasper template
This file contains hidden or 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" uuid="22bdd652-4495-480d-9b59-ed5f56d20558"> | |
| <property name="ireport.zoom" value="1.0"/> | |
| <property name="ireport.x" value="0"/> | |
| <property name="ireport.y" value="0"/> | |
| <style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/> | |
| <style name="SubTitle" forecolor="#736343" fontName="Arial" fontSize="18"/> | |
| <style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/> | |
| <style name="Detail" fontName="Arial" fontSize="12"/> | |
| <style name="Row" mode="Transparent"> | |
| <conditionalStyle> | |
| <conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression> | |
| <style backcolor="#E6DAC3"/> | |
| </conditionalStyle> | |
| </style> | |
| <queryString language="xpath2"> | |
| <![CDATA[/Printers/Printer]]> | |
| </queryString> | |
| <field name="Printer" class="java.lang.String"> | |
| <fieldDescription><![CDATA[/Printers/Printer]]></fieldDescription> | |
| </field> | |
| <group name="Group1"> | |
| <groupExpression><![CDATA[(int)($V{REPORT_COUNT}/15)]]></groupExpression> | |
| <groupHeader> | |
| <band height="37"> | |
| <frame> | |
| <reportElement mode="Opaque" x="-21" y="7" width="597" height="24" forecolor="#B89F7D" backcolor="#F2EBDF" uuid="704667ad-c279-4d49-8d0e-04f173a21531"/> | |
| <rectangle> | |
| <reportElement mode="Opaque" x="21" y="0" width="36" height="24" backcolor="#736343" uuid="665b404f-400f-4e83-9529-a98d23ad07c6"/> | |
| <graphicElement> | |
| <pen lineWidth="0.0"/> | |
| </graphicElement> | |
| </rectangle> | |
| <textField> | |
| <reportElement style="SubTitle" x="68" y="0" width="413" height="24" forecolor="#736343" uuid="54fc87bc-297f-4b6d-b7cc-1e7894d66799"/> | |
| <textElement> | |
| <font isBold="true"/> | |
| </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="30"> | |
| <textField> | |
| <reportElement style="SubTitle" x="0" y="4" width="460" height="20" uuid="cf9db573-58a4-482a-b895-66a1f8a05485"/> | |
| <textElement> | |
| <font size="16" isBold="true"/> | |
| </textElement> | |
| <textFieldExpression><![CDATA["GroupField"]]></textFieldExpression> | |
| </textField> | |
| </band> | |
| </groupHeader> | |
| </group> | |
| <background> | |
| <band splitType="Stretch"/> | |
| </background> | |
| <title> | |
| <band height="136" splitType="Stretch"> | |
| <image> | |
| <reportElement x="0" y="0" width="164" height="126" uuid="4fb96898-07dc-4727-8edd-0029e449c076"/> | |
| <imageExpression><![CDATA["coffee.jpg"]]></imageExpression> | |
| </image> | |
| <staticText> | |
| <reportElement style="Title" x="170" y="0" width="263" height="62" uuid="fe7465ab-f8fa-4b21-86c7-e0f17da9c10f"/> | |
| <textElement verticalAlignment="Middle"> | |
| <font pdfFontName="Times-Roman"/> | |
| </textElement> | |
| <text><![CDATA[Coffee Title]]></text> | |
| </staticText> | |
| <staticText> | |
| <reportElement style="SubTitle" x="219" y="62" width="196" height="22" uuid="70f1b8d6-4836-4529-8132-fa3990ca4d0a"/> | |
| <textElement> | |
| <font fontName="Times New Roman" pdfFontName="Times-Roman"/> | |
| </textElement> | |
| <text><![CDATA[Coffee SubTitle]]></text> | |
| </staticText> | |
| <staticText> | |
| <reportElement x="172" y="94" width="383" height="42" uuid="01baa43a-3d95-45a3-9926-184d0868e596"/> | |
| <textElement textAlignment="Right"> | |
| <font size="10"/> | |
| </textElement> | |
| <text><![CDATA[Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce auctor purus gravida arcu aliquam mattis. Donec et nulla libero, ut varius massa. Nulla sed turpis elit. Etiam aliquet mauris a ligula hendrerit in auctor leo lobortis.]]></text> | |
| </staticText> | |
| <image> | |
| <reportElement x="433" y="-115" width="267" height="209" uuid="10b0a25c-de68-4962-8ebb-3042e7314696"/> | |
| <imageExpression><![CDATA["coffee_stain.png"]]></imageExpression> | |
| </image> | |
| </band> | |
| </title> | |
| <pageHeader> | |
| <band splitType="Stretch"/> | |
| </pageHeader> | |
| <columnHeader> | |
| <band height="16" splitType="Stretch"> | |
| <staticText> | |
| <reportElement style="Column header" x="0" y="0" width="100" height="15" forecolor="#736343" uuid="558ebc69-1c7d-4869-87a0-437c5f058726"/> | |
| <text><![CDATA[Label]]></text> | |
| </staticText> | |
| <line> | |
| <reportElement positionType="FixRelativeToBottom" x="0" y="15" width="555" height="1" uuid="4748a610-c16e-4228-9643-6296a5e5ea22"/> | |
| <graphicElement> | |
| <pen lineWidth="0.5" lineColor="#999999"/> | |
| </graphicElement> | |
| </line> | |
| </band> | |
| </columnHeader> | |
| <detail> | |
| <band height="15" splitType="Stretch"> | |
| <frame> | |
| <reportElement style="Row" mode="Opaque" x="0" y="0" width="555" height="15" uuid="e7d2a133-9394-404e-9b3f-7b9b7770c1ed"/> | |
| <textField isStretchWithOverflow="true"> | |
| <reportElement style="Detail" x="1" y="0" width="100" height="15" uuid="b65f3804-2517-42c0-87ad-d70c34bd93ad"/> | |
| <textFieldExpression><![CDATA["Field"]]></textFieldExpression> | |
| </textField> | |
| </frame> | |
| </band> | |
| </detail> | |
| <columnFooter> | |
| <band height="45" splitType="Stretch"> | |
| <line> | |
| <reportElement positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1" uuid="96fb99b3-6709-4df4-93f1-75f953b75c32"/> | |
| <graphicElement> | |
| <pen lineWidth="0.5" lineColor="#999999"/> | |
| </graphicElement> | |
| </line> | |
| </band> | |
| </columnFooter> | |
| <pageFooter> | |
| <band height="25" splitType="Stretch"> | |
| <frame> | |
| <reportElement mode="Opaque" x="-21" y="1" width="597" height="24" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="0a7e3656-26d6-4150-bc10-ce183275a0c4"/> | |
| <textField evaluationTime="Report"> | |
| <reportElement style="Column header" x="533" y="0" width="40" height="20" forecolor="#736343" uuid="2b7d11d2-c72f-4b2b-a22a-26f6f82535ac"/> | |
| <textElement verticalAlignment="Middle"> | |
| <font size="10" isBold="false"/> | |
| </textElement> | |
| <textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> | |
| </textField> | |
| <textField> | |
| <reportElement style="Column header" x="453" y="0" width="80" height="20" forecolor="#736343" uuid="f36fe9ee-10df-4682-a3b3-8e0c6d60223d"/> | |
| <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="22" y="1" width="197" height="20" forecolor="#736343" uuid="4cb02ee1-35f3-4daa-b02b-eea7ce01384a"/> | |
| <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