untitled
viviti
GIS

Offers free applications, tech support and GIS training, demos.

J2EE

Offers free information about Java certification, latest java technology and free applications.

Basics in Jasper IReport Run Jasper

IReport Sample

This is the sample of JRXML file created using IReport GUI.
<?xml version="1.0" encoding="UTF-8"  ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
         name="blogtest"
         columnCount="1"
         printOrder="Vertical"
         orientation="Portrait"
         pageWidth="595"
         pageHeight="842"
         columnWidth="535"
         columnSpacing="0"
         leftMargin="30"
         rightMargin="30"
         topMargin="20"
         bottomMargin="20"
         whenNoDataType="NoPages"
         isTitleNewPage="false"
         isSummaryNewPage="false">
    <property name="ireport.scriptlethandling" value="2" />
    <property name="ireport.encoding" value="UTF-8" />
    <import value="java.util.*" />
    <import value="net.sf.jasperreports.engine.*" />
    <import value="net.sf.jasperreports.engine.data.*" />
        <background>
            <band height="0"  isSplitAllowed="true" >
            </band>
        </background>
        <title>
            <band height="50"  isSplitAllowed="true" >
                <staticText>
                    <reportElement
                        mode="Transparent"
                        x="15"
                        y="0"
                        width="477"
                        height="50"
                        forecolor="#000000"
                        backcolor="#FFFFFF"
                        key="staticText-1"
                        stretchType="NoStretch"
                        positionType="FixRelativeToTop"
                        isPrintRepeatedValues="true"
                        isRemoveLineWhenBlank="false"
                        isPrintInFirstWholeBand="false"
                        isPrintWhenDetailOverflows="false"/>
                    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                    <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">
                        <font fontName="Arial" pdfFontName="Helvetica" size="24" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
                    </textElement>
                <text><![CDATA[My IReport Test]]></text>
                </staticText>
            </band>
        </title>
        <pageHeader>
            <band height="50"  isSplitAllowed="true" >
            </band>
        </pageHeader>
        <columnHeader>
            <band height="30"  isSplitAllowed="true" >
            </band>
        </columnHeader>
        <detail>
            <band height="100"  isSplitAllowed="true" >
            </band>
        </detail>
        <columnFooter>
            <band height="30"  isSplitAllowed="true" >
            </band>
        </columnFooter>
        <pageFooter>
            <band height="50"  isSplitAllowed="true" >
            </band>
        </pageFooter>
        <lastPageFooter>
            <band height="50"  isSplitAllowed="true" >
            </band>
        </lastPageFooter>
        <summary>
            <band height="50"  isSplitAllowed="true" >
            </band>
        </summary>
</jasperReport>
 


Web Hosting · Blog · Guestbooks · Message Forums · Mailing Lists
Easiest Website Builder ever! · Build your own toolbar · Free Talking Character · Email Marketing
powered by a free webtools company bravenet.com