Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/04/2012, 06:30
rcastellanossuarez
 
Fecha de Ingreso: enero-2011
Mensajes: 74
Antigüedad: 13 años, 3 meses
Puntos: 4
problema jasper report

Hola :
Soy nuevo usando jasper report y tengo el siguiente problema:
Necesito un reporte que no es de bases de datos es solo estatico y solo debo pasarle parametros que obtengo de mi clase java pero no se por que motivo me pone 7 paginas y me repite los datos de la banda detail si no he configurado nada para que haga esto
espero me puedan ayudar
aca les dejo el codigo
Código PHP:
<?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="reconocimientoDeudaReport" pageWidth="595" pageHeight="700" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
    <property name="ireport.zoom" value="1.0"/>
    <property name="ireport.x" value="0"/>
    <property name="ireport.y" value="0"/>
    <parameter name="numeroCarta" class="java.lang.String"/>
    <parameter name="fechaCarta" class="java.lang.String"/>
    <parameter name="rutBeneficiario" class="java.lang.String"/>
    <parameter name="direccion" class="java.lang.String"/>
    <parameter name="telefono" class="java.lang.String"/>
    <parameter name="nombreBeneficiario" class="java.lang.String"/>
    <parameter name="comuna" class="java.lang.String"/>
    <parameter name="comuna1" class="java.lang.String"/>
    <parameter name="estadoAfiliado" class="java.lang.String"/>
    <background>
        <band splitType="Stretch"/>
    </background>
    <title>
        <band height="79" splitType="Stretch">
            <staticText>
                <reportElement x="135" y="39" width="273" height="20"/>
                <textElement/>
                <text><![CDATA[Reconocimiento de Deuda y Compromiso de Reintegro]]></text>
            </staticText>
            <staticText>
                <reportElement x="33" y="59" width="136" height="20"/>
                <textElement/>
                <text><![CDATA[I. Datos Del Beneficiario]]></text>
            </staticText>
        </band>
    </title>
    <pageHeader>
        <band height="38" splitType="Stretch">
            <staticText>
                <reportElement x="13" y="0" width="65" height="16"/>
                <textElement/>
                <text><![CDATA[Fecha Carta]]></text>
            </staticText>
            <staticText>
                <reportElement x="13" y="18" width="65" height="20"/>
                <textElement/>
                <text><![CDATA[Run]]></text>
            </staticText>
            <textField>
                <reportElement x="78" y="0" width="79" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$P{fechaCarta}]]></textFieldExpression>
            </textField>
            <textField>
                <reportElement x="408" y="0" width="91" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$P{numeroCarta}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="328" y="0" width="69" height="20"/>
                <textElement/>
                <text><![CDATA[Número Carta]]></text>
            </staticText>
            <textField>
                <reportElement x="78" y="18" width="100" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$P{rutBeneficiario}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="328" y="18" width="69" height="20"/>
                <textElement/>
                <text><![CDATA[Comuna]]></text>
            </staticText>
            <textField>
                <reportElement x="408" y="16" width="100" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$P{comuna}]]></textFieldExpression>
            </textField>
        </band>
    </pageHeader>
    <detail>
        <band height="764">
            <staticText>
                <reportElement x="13" y="25" width="65" height="20"/>
                <textElement/>
                <text><![CDATA[Nombre]]></text>
            </staticText>
            <staticText>
                <reportElement x="13" y="45" width="65" height="20"/>
                <textElement/>
                <text><![CDATA[Dirección]]></text>
            </staticText>
            <staticText>
                <reportElement x="13" y="65" width="65" height="20"/>
                <textElement/>
                <text><![CDATA[Teléfono]]></text>
            </staticText>
            <textField>
                <reportElement x="78" y="45" width="91" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$P{direccion}]]></textFieldExpression>
            </textField>
            <textField>
                <reportElement x="78" y="66" width="100" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$P{telefono}]]></textFieldExpression>
            </textField>
            <textField>
                <reportElement x="78" y="25" width="124" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$P{nombreBeneficiario}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="328" y="46" width="69" height="20"/>
                <textElement/>
                <text><![CDATA[Comuna]]></text>
            </staticText>
            <textField>
                <reportElement x="408" y="45" width="100" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$P{comuna1}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="328" y="66" width="80" height="20"/>
                <textElement/>
                <text><![CDATA[Estado Afiliado]]></text>
            </staticText>
            <textField>
                <reportElement x="408" y="66" width="100" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$P{estadoAfiliado}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="189" y="65" width="124" height="20"/>
                <textElement/>
                <text><![CDATA[II. Datos de la Empresa]]></text>
            </staticText>
            <staticText>
                <reportElement x="235" y="25" width="65" height="20"/>
                <textElement/>
                <text><![CDATA[Rut Empresa]]></text>
            </staticText>
        </band>
    </detail>
</jasperReport>