IReport - Componente list quebrando

0 respostas
D

Olá pessoal.

Por desistência, resolvi pular esse problema, mas vou escrever aqui, caso alguém possa ajudar.

No IReport, versão 5.0.0, tenho um componente List dentro de uma band. A função do List é percorrer uma JRBeanCollectionDataSource e imprimir uma “tabela” (que não é uma tabela propriamente dita e sim textfields com bordas) para cada objeto iterado.

A imagem “image1” ilusta o relatório no IReport.

O código da band que contém o List é:

<band height="493" splitType="Stretch"> <printWhenExpression><![CDATA[Integer.parseInt($F{campos}.get("codigoLinhaFomento").toString())<9]]></printWhenExpression> <staticText> <reportElement uuid="c3533447-2eb9-474e-a84f-b1f93e6b9c8f" positionType="Float" mode="Transparent" x="0" y="8" width="555" height="24" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="15"/> </textElement> <text><![CDATA[Instituições intervenientes]]></text> </staticText> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" x="0" y="32" width="555" height="20" isRemoveLineWhenBlank="true"> <printWhenExpression><![CDATA[$V{instituicoesIntervenientes}.isEmpty()]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified"> <font fontName="Arial" size="13"/> </textElement> <textFieldExpression><![CDATA["Este projeto não possui instituições intervenientes."]]></textFieldExpression> </textField> <componentElement> <reportElement uuid="3857c24d-50dd-40ef-850b-28e262f6c3c3" positionType="Float" x="0" y="52" width="555" height="441"> <printWhenExpression><![CDATA[!$V{instituicoesIntervenientes}.isEmpty()]]></printWhenExpression> </reportElement> <jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical"> <datasetRun subDataset="dataset1" uuid="fa934988-d621-4583-9064-a8df180416cc"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($V{instituicoesIntervenientes})]]></dataSourceExpression> </datasetRun> <jr:listContents height="441" width="555"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="40" width="555" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Natureza jurídica: </b>"+$F{naturezaJuridica}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="100" width="350" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Cidade: </b>"+$F{cidade}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="100" width="205" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>UF: </b>"+$F{uf}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="120" width="350" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>CEP: </b>"+$F{cep}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="120" width="205" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>País: </b>"+$F{pais}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="140" width="350" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Telefone: </b>"+$F{telefone}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="140" width="205" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>E-mail: </b>"+$F{email}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="160" width="555" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Nome do representante legal: </b>"+$F{nomeRepresentanteLegal}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="180" width="350" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>CPF: </b>"+$F{cpfRL}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="180" width="205" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>RG/Órgão: </b>"+$F{orgaoRgRL}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="200" width="350" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Nacionalidade: </b>"+$F{nacionalidadeRL}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="200" width="205" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Estado civil: </b>"+$F{estadoCivilRL}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="220" width="555" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Profissão: </b>"+$F{profissaoRL}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="280" width="350" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Cidade: </b>"+$F{cidadeRL}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="280" width="205" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>UF: </b>"+$F{ufRL}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="300" width="350" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>CEP: </b>"+$F{cepRL}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="300" width="205" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>País: </b>"+$F{paisRL}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="340" width="205" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[!$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>CPNJ: </b>"+$F{cnpj}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="340" width="350" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[!$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Sigla: </b>"+$F{sigla}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="360" width="555" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[!$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Cidade: </b>"+$F{cidade}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="380" width="350" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[!$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>UF: </b>"+$F{uf}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="380" width="205" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[!$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>País: </b>"+$F{pais}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="400" width="555" height="20" isRemoveLineWhenBlank="true" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[!$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>E-mail: </b>"+$F{email}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Opaque" x="0" y="0" width="555" height="20" backcolor="#F7F6F6"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Nome: </b>"+$F{nome}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="0" y="20" width="350" height="20" backcolor="#F7F6F6"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Sigla: </b>"+$F{sigla}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="350" y="20" width="205" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>CPNJ: </b>"+$F{cnpj}]]></textFieldExpression> </textField> <frame> <reportElement uuid="83cef929-94a3-4f93-8faf-220a93235f76" positionType="Float" x="0" y="60" width="555" height="20"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <staticText> <reportElement uuid="c3533447-2eb9-474e-a84f-b1f93e6b9c8f" mode="Transparent" x="0" y="0" width="71" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement verticalAlignment="Top"> <font fontName="Arial" size="13" isBold="true"/> <paragraph leftIndent="5" spacingBefore="4"/> </textElement> <text><![CDATA[Endereço:]]></text> </staticText> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="71" y="0" width="279" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Top" markup="html"> <font fontName="Arial" size="13"/> <paragraph spacingBefore="4"/> </textElement> <textFieldExpression><![CDATA[$F{endereco}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="350" y="0" width="205" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Top" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5" spacingBefore="4"/> </textElement> <textFieldExpression><![CDATA["<b>Nº: </b>"+$F{numero}]]></textFieldExpression> </textField> </frame> <frame> <reportElement uuid="83cef929-94a3-4f93-8faf-220a93235f76" positionType="Float" x="0" y="80" width="555" height="20"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="350" y="0" width="205" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Top" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5" spacingBefore="4"/> </textElement> <textFieldExpression><![CDATA["<b>Bairro: </b>"+$F{bairroRL}]]></textFieldExpression> </textField> <staticText> <reportElement uuid="c3533447-2eb9-474e-a84f-b1f93e6b9c8f" mode="Transparent" x="0" y="0" width="99" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement verticalAlignment="Top"> <font fontName="Arial" size="13" isBold="true"/> <paragraph leftIndent="5" spacingBefore="4" spacingAfter="3"/> </textElement> <text><![CDATA[Complemento:]]></text> </staticText> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="99" y="0" width="251" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Top" markup="html"> <font fontName="Arial" size="13"/> <paragraph spacingBefore="4"/> </textElement> <textFieldExpression><![CDATA[$F{complementoRL}]]></textFieldExpression> </textField> </frame> <frame> <reportElement uuid="83cef929-94a3-4f93-8faf-220a93235f76" positionType="Float" x="0" y="240" width="555" height="20"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="145" y="0" width="205" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Top" markup="html"> <font fontName="Arial" size="13"/> <paragraph spacingBefore="4"/> </textElement> <textFieldExpression><![CDATA[$F{enderecoResidencialRL}]]></textFieldExpression> </textField> <staticText> <reportElement uuid="c3533447-2eb9-474e-a84f-b1f93e6b9c8f" mode="Transparent" x="0" y="0" width="145" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement verticalAlignment="Top"> <font fontName="Arial" size="13" isBold="true"/> <paragraph leftIndent="5" spacingBefore="4"/> </textElement> <text><![CDATA[Endereço residencial:]]></text> </staticText> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="350" y="0" width="205" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Top" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5" spacingBefore="4"/> </textElement> <textFieldExpression><![CDATA["<b>Nº: </b>"+$F{numeroRL}]]></textFieldExpression> </textField> </frame> <frame> <reportElement uuid="83cef929-94a3-4f93-8faf-220a93235f76" positionType="Float" x="0" y="260" width="555" height="20"/> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" stretchType="RelativeToBandHeight" mode="Transparent" x="350" y="0" width="205" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Top" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5" spacingBefore="4"/> </textElement> <textFieldExpression><![CDATA["<b>Bairro: </b>"+$F{bairroRL}]]></textFieldExpression> </textField> <staticText> <reportElement uuid="c3533447-2eb9-474e-a84f-b1f93e6b9c8f" mode="Transparent" x="0" y="0" width="99" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement verticalAlignment="Top"> <font fontName="Arial" size="13" isBold="true"/> <paragraph leftIndent="5" spacingBefore="4" spacingAfter="3"/> </textElement> <text><![CDATA[Complemento:]]></text> </staticText> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Transparent" x="99" y="0" width="251" height="20" backcolor="#F7F6F6"/> <box> <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Top" markup="html"> <font fontName="Arial" size="13"/> <paragraph spacingBefore="4"/> </textElement> <textFieldExpression><![CDATA[$F{complementoRL}]]></textFieldExpression> </textField> </frame> <textField isStretchWithOverflow="true"> <reportElement uuid="e9606ea1-9b7f-4c1e-9760-d17371805852" positionType="Float" mode="Opaque" x="0" y="320" width="555" height="20" backcolor="#F7F6F6"> <printWhenExpression><![CDATA[!$F{representanteLegal}]]></printWhenExpression> </reportElement> <box> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html"> <font fontName="Arial" size="13"/> <paragraph leftIndent="5"/> </textElement> <textFieldExpression><![CDATA["<b>Nome: </b>"+$F{nome}]]></textFieldExpression> </textField> </jr:listContents> </jr:list> </componentElement> </band>

O que ocorre, é que, se tenho 2 objetos na JRBeanCollectionDataSource, o List imprime as 2 tabelas, porém, a 2ª não cabe na mesma página da primeira, e ao invés de quebrar essa 2ª tabela quando a página acaba, toda a 2ª tabela está sendo impressa na próxima página, como mostra a “image2”.

Já fiz vários testes alterando as propriedades dos componentes que estão dentro da List, mas até agora não obtive sucesso.

Se alguém já passou por isso e puder dar uma ajuda, agradeço.

Criado 25 de março de 2013
Respostas 0
Participantes 1