Jump to content
We've recently updated our Privacy Statement, available here ×

List row overflowed


ildelian
Go to solution Solved by ildelian,

Recommended Posts

Good morning.

I am trying to print a table inside a list, I have this object hierarchy:

Detail -> Frame -> List -> Frame -> Table

Some times, te table can be very large, with a lot of rows, and in this case I receive this exception from Jasper:
 

java.lang.AssertionError: List row overflowed on 3 consecutive pages, likely infinite loop.[/code]

Anybody knows why I am receiving this kind of errors? How I can avoid this?

Apart of this, I have problems printing the table inside the List element, the resulting PDF has missing data, for example, I have a list of 7 elements, and on the table I have only 4, or another list with 15 element and the result table is empty, is very strange.

I am using Jasper 6.9.0 via Maven Libraries.

This is my jrxml file:
 

<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.8.0.final using JasperReports Library version 6.8.0-2ed8dfabb690ff337a5797129f2cd92902b0c87b  --><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="SonarAutoPeerReviewReport" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="13acf49e-4913-4d1b-bccc-113817ad15d1">    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>    <style name="Title" forecolor="#FFFFFF" fontName="Times New Roman" fontSize="50" isBold="false"/>    <style name="SubTitle" forecolor="#CCCCCC" fontName="Times New Roman" fontSize="18" isBold="false"/>    <style name="Column header" forecolor="#666666" fontName="Times New Roman" fontSize="14" isBold="true"/>    <style name="Detail" mode="Transparent" fontName="Times New 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>    <style name="Table_TH" mode="Opaque" backcolor="#D76734">        <box>            <pen lineWidth="0.5" lineColor="#000000"/>            <topPen lineWidth="0.5" lineColor="#000000"/>            <leftPen lineWidth="0.5" lineColor="#000000"/>            <bottomPen lineWidth="0.5" lineColor="#000000"/>            <rightPen lineWidth="0.5" lineColor="#000000"/>        </box>    </style>    <style name="Table_CH" mode="Opaque" backcolor="#D76734">        <box>            <pen lineWidth="0.5" lineColor="#000000"/>            <topPen lineWidth="0.5" lineColor="#000000"/>            <leftPen lineWidth="0.5" lineColor="#000000"/>            <bottomPen lineWidth="0.5" lineColor="#000000"/>            <rightPen lineWidth="0.5" lineColor="#000000"/>        </box>    </style>    <style name="Table_TD" mode="Opaque" backcolor="#FFFFFF">        <box>            <pen lineWidth="0.5" lineColor="#000000"/>            <topPen lineWidth="0.5" lineColor="#000000"/>            <leftPen lineWidth="0.5" lineColor="#000000"/>            <bottomPen lineWidth="0.5" lineColor="#000000"/>            <rightPen lineWidth="0.5" lineColor="#000000"/>        </box>        <conditionalStyle>            <conditionExpression><![CDATA[new Boolean($V{REPORT_COUNT}.intValue()%2==0)]]></conditionExpression>            <style backcolor="#F8F8F8"/>        </conditionalStyle>    </style>    <style name="Table 1_TH" mode="Opaque" backcolor="#D76734">        <box>            <pen lineWidth="0.5" lineColor="#000000"/>            <topPen lineWidth="0.5" lineColor="#000000"/>            <leftPen lineWidth="0.5" lineColor="#000000"/>            <bottomPen lineWidth="0.5" lineColor="#000000"/>            <rightPen lineWidth="0.5" lineColor="#000000"/>        </box>    </style>    <style name="Table 1_CH" mode="Opaque" backcolor="#D76734">        <box>            <pen lineWidth="0.5" lineColor="#000000"/>            <topPen lineWidth="0.5" lineColor="#000000"/>            <leftPen lineWidth="0.5" lineColor="#000000"/>            <bottomPen lineWidth="0.5" lineColor="#000000"/>            <rightPen lineWidth="0.5" lineColor="#000000"/>        </box>    </style>    <style name="Table 1_TD" mode="Opaque" backcolor="#FFFFFF">        <box>            <pen lineWidth="0.5" lineColor="#000000"/>            <topPen lineWidth="0.5" lineColor="#000000"/>            <leftPen lineWidth="0.5" lineColor="#000000"/>            <bottomPen lineWidth="0.5" lineColor="#000000"/>            <rightPen lineWidth="0.5" lineColor="#000000"/>        </box>    </style>    <subDataset name="SonarResultTableDataSet" whenResourceMissingType="Empty" uuid="e8cf6d79-1498-46fa-af7c-f06b80e48d13">        <queryString>            <![CDATA[]]>        </queryString>        <field name="rule" class="java.lang.String">            <fieldDescription><![CDATA[Regla]]></fieldDescription>        </field>        <field name="description" class="java.lang.String">            <fieldDescription><![CDATA[Descripción]]></fieldDescription>        </field>        <field name="benefit" class="java.lang.String"/>    </subDataset>    <subDataset name="RuleDataSet" whenResourceMissingType="Empty" uuid="07dc3a1c-196e-45de-9ae4-8f15c90f170d">        <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>        <queryString>            <![CDATA[]]>        </queryString>        <field name="ruleId" class="java.lang.String"/>        <field name="ruleDescription" class="java.lang.String"/>        <field name="benefit" class="java.lang.String"/>        <field name="filesDataSource" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource"/>    </subDataset>    <subDataset name="RuleFilesOccurrencesDataSet" whenResourceMissingType="Empty" uuid="01546f4e-4ec8-4d75-93be-8be5eed5a598">        <queryString>            <![CDATA[]]>        </queryString>        <field name="file" class="java.lang.String"/>        <field name="occurrences" class="java.lang.Integer"/>    </subDataset>    <parameter name="PROJECT_NAME" class="java.lang.String"/>    <parameter name="RULE_BENEFIT" class="java.lang.String"/>    <queryString>        <![CDATA[]]>    </queryString>    <field name="TABLE_RESULT_DATASOURCE" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">        <fieldDescription><![CDATA[Lista de resultados del reporte]]></fieldDescription>    </field>    <field name="FILE_OCCURRENCES_DATASOURCE" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource"/>    <pageHeader>        <band height="101">            <textField>                <reportElement key="" isPrintRepeatedValues="false" x="232" y="49" width="333" height="40" uuid="097a9fdd-b84d-48fe-a294-c05360290a4b"/>                <textElement>                    <font fontName="DejaVu Sans" size="19"/>                </textElement>                <textFieldExpression><![CDATA["Sonar Auto Peer Review Report"]]></textFieldExpression>            </textField>            <image>                <reportElement x="0" y="0" width="230" height="90" uuid="f5046c40-deba-467c-b19e-982e60a0b255"/>                <imageExpression><![CDATA["reports/SonarAutoPeerReviewReport/mdone_logo1.png"]]></imageExpression>            </image>        </band>    </pageHeader>    <detail>        <band height="100" splitType="Stretch">            <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>            <frame>                <reportElement x="0" y="0" width="555" height="100" uuid="38645c8c-4575-4fd4-9871-b7969c76a5d0"/>                <rectangle>                    <reportElement x="15" y="45" width="525" height="45" uuid="a61ff3f9-0646-4cd1-9a56-54cc22d39958"/>                </rectangle>                <staticText>                    <reportElement x="51" y="15" width="144" height="30" uuid="c04a3381-a675-477e-a440-cbce5729f089"/>                    <textElement verticalAlignment="Middle">                        <font fontName="DejaVu Sans" size="15"/>                    </textElement>                    <text><![CDATA[Datos Generales]]></text>                </staticText>                <image>                    <reportElement x="34" y="21" width="15" height="15" uuid="30e08cdc-9b72-4b3d-8822-9af6fb8d29ad">                        <property name="com.jaspersoft.studio.unit.width" value="px"/>                        <property name="com.jaspersoft.studio.unit.height" value="px"/>                    </reportElement>                    <imageExpression><![CDATA["reports/SonarAutoPeerReviewReport/info-circle-solid.svg"]]></imageExpression>                </image>                <image>                    <reportElement x="34" y="51" width="15" height="15" uuid="35159428-4bd7-48bb-bc94-1783b7e9f9e0">                        <property name="com.jaspersoft.studio.unit.width" value="px"/>                        <property name="com.jaspersoft.studio.unit.height" value="px"/>                    </reportElement>                    <imageExpression><![CDATA["reports/SonarAutoPeerReviewReport/briefcase-solid.svg"]]></imageExpression>                </image>                <staticText>                    <reportElement x="50" y="51" width="60" height="14" uuid="7f81b588-ba91-4441-a0c1-5fef941d3fe4">                        <property name="com.jaspersoft.studio.unit.x" value="px"/>                    </reportElement>                    <textElement verticalAlignment="Middle">                        <font fontName="DejaVu Sans" size="11"/>                    </textElement>                    <text><![CDATA[Proyecto:]]></text>                </staticText>                <textField>                    <reportElement x="110" y="51" width="420" height="14" uuid="d76b2ba1-b19b-424d-895d-b52f6f157aea"/>                    <textElement>                        <font fontName="DejaVu Sans" size="11"/>                    </textElement>                    <textFieldExpression><![CDATA[$P{PROJECT_NAME}]]></textFieldExpression>                </textField>                <image>                    <reportElement x="34" y="70" width="15" height="15" uuid="526ea320-e0ca-45d6-a026-ce22aba8657b">                        <property name="com.jaspersoft.studio.unit.width" value="px"/>                        <property name="com.jaspersoft.studio.unit.height" value="px"/>                    </reportElement>                    <imageExpression><![CDATA["reports/SonarAutoPeerReviewReport/hourglass-end-solid.svg"]]></imageExpression>                </image>                <textField>                    <reportElement x="50" y="70" width="450" height="14" uuid="3190fd3f-9527-4a27-ab44-893de26b96e6"/>                    <textElement>                        <font fontName="DejaVu Sans" size="11"/>                    </textElement>                    <textFieldExpression><![CDATA["Se han obtenido ".concat($P{RULE_BENEFIT}).concat(" de beneficio.")]]></textFieldExpression>                </textField>            </frame>        </band>        <band height="130" splitType="Stretch">            <property name="com.jaspersoft.studio.unit.height" value="px"/>            <frame>                <reportElement stretchType="ContainerHeight" x="5" y="5" width="555" height="125" uuid="bca6053a-5f97-41a4-9144-75a85685af2c">                    <property name="com.jaspersoft.studio.unit.width" value="px"/>                    <property name="com.jaspersoft.studio.unit.height" value="px"/>                    <property name="com.jaspersoft.studio.unit.x" value="px"/>                </reportElement>                <image>                    <reportElement x="34" y="10" width="15" height="15" uuid="2c46eb17-f9b5-45d8-9a33-7de58a500b6a">                        <property name="com.jaspersoft.studio.unit.width" value="px"/>                        <property name="com.jaspersoft.studio.unit.height" value="px"/>                        <property name="com.jaspersoft.studio.unit.x" value="px"/>                    </reportElement>                    <imageExpression><![CDATA["reports/SonarAutoPeerReviewReport/table-solid.svg"]]></imageExpression>                </image>                <staticText>                    <reportElement x="51" y="2" width="358" height="30" uuid="1add2f92-b466-4adb-88b3-dc382e616d04"/>                    <textElement verticalAlignment="Middle">                        <font fontName="DejaVu Sans" size="15"/>                    </textElement>                    <text><![CDATA[Tabla de Resultados (reglas aplicadas)]]></text>                </staticText>                <componentElement>                    <reportElement positionType="Float" stretchType="ContainerBottom" x="7" y="56" width="543" height="64" uuid="5f7a4045-cb92-41da-9f3f-0ecf9f9e50d3">                        <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>                        <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>                        <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>                        <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>                        <property name="com.jaspersoft.studio.components.autoresize.proportional" value="true"/>                    </reportElement>                    <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" whenNoDataType="AllSectionsNoDetail">                        <datasetRun subDataset="SonarResultTableDataSet" uuid="b7712d97-5aad-4e95-b96f-57b27267c120">                            <datasetParameter name="REPORT_DATA_SOURCE">                                <datasetParameterExpression><![CDATA[$F{TABLE_RESULT_DATASOURCE}]]></datasetParameterExpression>                            </datasetParameter>                        </datasetRun>                        <jr:column width="181" uuid="338ef78d-6e4d-4747-b306-01f90b321782">                            <jr:columnHeader style="Table_CH" height="30">                                <staticText>                                    <reportElement key="" x="0" y="0" width="181" height="30" uuid="1706747f-9de6-49c3-8216-0eea764d358f">                                        <property name="com.jaspersoft.studio.element.name" value="Regla"/>                                    </reportElement>                                    <textElement textAlignment="Center" verticalAlignment="Middle"/>                                    <text><![CDATA[Regla]]></text>                                </staticText>                            </jr:columnHeader>                            <jr:detailCell style="Table_TD" height="30">                                <textField>                                    <reportElement x="0" y="0" width="181" height="30" uuid="31b366ad-3589-4c4f-91c9-3f4c35a31912"/>                                    <textElement verticalAlignment="Middle"/>                                    <textFieldExpression><![CDATA[" ".concat($F{rule}).concat("")]]></textFieldExpression>                                </textField>                            </jr:detailCell>                        </jr:column>                        <jr:column width="181" uuid="ba9d863f-e5a8-4c75-8beb-4c26f9da3a96">                            <jr:columnHeader style="Table_CH" height="30">                                <staticText>                                    <reportElement key="" x="0" y="0" width="181" height="30" uuid="c824a1b6-6437-407d-9b26-b1fec657a5ef">                                        <property name="com.jaspersoft.studio.element.name" value="Descripción"/>                                    </reportElement>                                    <textElement textAlignment="Center" verticalAlignment="Middle"/>                                    <text><![CDATA[Descripción]]></text>                                </staticText>                            </jr:columnHeader>                            <jr:detailCell style="Table_TD" height="30">                                <textField>                                    <reportElement x="0" y="0" width="181" height="30" uuid="bcd1610d-7954-4651-9d63-d2541e888f83"/>                                    <textElement verticalAlignment="Middle"/>                                    <textFieldExpression><![CDATA[" ".concat($F{description}).concat("")]]></textFieldExpression>                                </textField>                            </jr:detailCell>                        </jr:column>                        <jr:column width="181" uuid="c2b7606e-0710-4674-885b-86568abdcebf">                            <jr:columnHeader style="Table_CH" height="30">                                <staticText>                                    <reportElement key="" x="0" y="0" width="181" height="30" uuid="7ab9ed84-30db-4b1b-9532-bd50065c919a">                                        <property name="com.jaspersoft.studio.element.name" value="Beneficio"/>                                    </reportElement>                                    <textElement textAlignment="Center" verticalAlignment="Middle"/>                                    <text><![CDATA[beneficio]]></text>                                </staticText>                            </jr:columnHeader>                            <jr:detailCell style="Table_TD" height="30">                                <textField>                                    <reportElement x="0" y="0" width="181" height="30" uuid="3ca707d4-caf0-4ae8-a048-5424c13c8140"/>                                    <textElement verticalAlignment="Middle"/>                                    <textFieldExpression><![CDATA[" ".concat($F{benefit}).concat("")]]></textFieldExpression>                                </textField>                            </jr:detailCell>                        </jr:column>                    </jr:table>                </componentElement>            </frame>        </band>        <band height="397" splitType="Stretch">            <frame>                <reportElement positionType="Float" x="34" y="2" width="375" height="30" uuid="8398fc7b-c1a9-4f76-9ec9-28328dda93df"/>                <image>                    <reportElement x="0" y="8" width="15" height="15" uuid="901a7423-fa0b-40b3-ada0-8f54f106b7be">                        <property name="com.jaspersoft.studio.unit.width" value="px"/>                        <property name="com.jaspersoft.studio.unit.height" value="px"/>                        <property name="com.jaspersoft.studio.unit.x" value="px"/>                    </reportElement>                    <imageExpression><![CDATA["reports/SonarAutoPeerReviewReport/magic-solid.svg"]]></imageExpression>                </image>                <staticText>                    <reportElement x="17" y="0" width="358" height="30" uuid="8d3da41c-a8d4-4f59-b872-50a6ed2d55e2"/>                    <textElement verticalAlignment="Middle">                        <font fontName="DejaVu Sans" size="15"/>                    </textElement>                    <text><![CDATA[Detalle ficheros modificados por las reglas]]></text>                </staticText>            </frame>            <frame borderSplitType="NoBorders">                <reportElement positionType="Float" x="5" y="48" width="555" height="202" uuid="1e065fc8-25f7-4481-a82f-fda59d52bc5d">                    <property name="com.jaspersoft.studio.unit.width" value="px"/>                    <property name="com.jaspersoft.studio.unit.height" value="px"/>                </reportElement>                <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">                    <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>                    <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>                    <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>                    <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>                </box>                <componentElement>                    <reportElement x="8" y="8" width="542" height="182" uuid="b4ef6238-1c05-45a1-92d0-6e396013d727"/>                    <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="Horizontal">                        <datasetRun subDataset="RuleDataSet" uuid="d5cc7000-1533-4eb2-966a-dc42c324dcab">                            <dataSourceExpression><![CDATA[$F{FILE_OCCURRENCES_DATASOURCE}]]></dataSourceExpression>                        </datasetRun>                        <jr:listContents height="182" width="542">                            <frame>                                <reportElement x="0" y="7" width="540" height="172" uuid="f0c94452-5a29-4075-9be2-75110ec003b8"/>                                <box>                                    <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>                                    <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>                                    <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>                                    <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>                                </box>                                <textField>                                    <reportElement x="107" y="4" width="422" height="20" uuid="a2680f23-840e-4ed1-ba2a-b70ac560f6ef">                                        <property name="com.jaspersoft.studio.unit.height" value="px"/>                                    </reportElement>                                    <textFieldExpression><![CDATA[$F{ruleId}]]></textFieldExpression>                                </textField>                                <textField isStretchWithOverflow="true">                                    <reportElement x="107" y="24" width="422" height="30" uuid="f0166fb8-f41b-410a-bd81-2bb0ec24a677"/>                                    <textFieldExpression><![CDATA[$F{ruleDescription}]]></textFieldExpression>                                </textField>                                <textField>                                    <reportElement positionType="Float" x="8" y="55" width="520" height="30" uuid="6986f0ae-9d2a-4b89-800e-a52e76c68dcd"/>                                    <textFieldExpression><![CDATA["Esta regla ha generado ".concat($F{benefit}).concat(" de beneficio. ")]]></textFieldExpression>                                </textField>                                <staticText>                                    <reportElement x="6" y="4" width="100" height="20" uuid="30e3467e-e57d-4ef4-86dc-398c31b581c5"/>                                    <text><![CDATA[Rule Id: ]]></text>                                </staticText>                                <staticText>                                    <reportElement x="7" y="24" width="100" height="30" uuid="07b6acbe-ee6e-4603-ab76-28a0abdd6d33"/>                                    <text><![CDATA[Rule Description: ]]></text>                                </staticText>                                <componentElement>                                    <reportElement style="Column header" stretchType="ElementGroupHeight" mode="Transparent" x="6" y="101" width="524" height="65" uuid="d82c2a33-8142-42ec-9d5b-a60595397e99">                                        <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>                                        <property name="com.jaspersoft.studio.table.style.table_header" value="Table 1_TH"/>                                        <property name="com.jaspersoft.studio.table.style.column_header" value="Table 1_CH"/>                                        <property name="com.jaspersoft.studio.table.style.detail" value="Table 1_TD"/>                                        <property name="com.jaspersoft.studio.components.autoresize.proportional" value="true"/>                                    </reportElement>                                    <jr:table whenNoDataType="AllSectionsNoDetail">                                        <datasetRun subDataset="RuleFilesOccurrencesDataSet" uuid="b95a9b2b-0eaa-4436-a5e6-82ef8a15cd55">                                            <datasetParameter name="REPORT_DATA_SOURCE">                                                <datasetParameterExpression><![CDATA[$F{filesDataSource}]]></datasetParameterExpression>                                            </datasetParameter>                                            <dataSourceExpression><![CDATA[$P{REPORT_CONNECTION}]]></dataSourceExpression>                                        </datasetRun>                                        <jr:column width="264" uuid="f1d4af43-646b-4a9f-8e3b-54c47636a02b">                                            <jr:columnHeader style="Table 1_CH" height="30">                                                <staticText>                                                    <reportElement x="0" y="0" width="264" height="30" uuid="84a647b9-5fa4-4874-89d2-01e6536e2468"/>                                                    <textElement textAlignment="Center" verticalAlignment="Middle"/>                                                    <text><![CDATA[Fichero]]></text>                                                </staticText>                                            </jr:columnHeader>                                            <jr:detailCell style="Table 1_TD" height="30">                                                <box padding="5"/>                                                <textField>                                                    <reportElement x="0" y="0" width="254" height="20" uuid="b1374d32-d129-4b71-bf6e-037284ce450d"/>                                                    <textElement textAlignment="Left" verticalAlignment="Middle"/>                                                    <textFieldExpression><![CDATA[$F{file}]]></textFieldExpression>                                                </textField>                                            </jr:detailCell>                                        </jr:column>                                        <jr:column width="260" uuid="31cbf186-98bf-439f-9552-406656a7c9a1">                                            <jr:columnHeader style="Table 1_CH" height="30">                                                <staticText>                                                    <reportElement x="0" y="0" width="260" height="30" uuid="bc4c1569-5e41-477c-acd1-a3c6e85468c3"/>                                                    <textElement textAlignment="Center" verticalAlignment="Middle"/>                                                    <text><![CDATA[Ocurrencias]]></text>                                                </staticText>                                            </jr:columnHeader>                                            <jr:detailCell style="Table 1_TD" height="30">                                                <textField>                                                    <reportElement x="0" y="0" width="260" height="30" uuid="4ca774f5-8156-4e2b-a13f-8795b1ab1823"/>                                                    <textElement textAlignment="Center" verticalAlignment="Middle"/>                                                    <textFieldExpression><![CDATA[$F{occurrences}]]></textFieldExpression>                                                </textField>                                            </jr:detailCell>                                        </jr:column>                                    </jr:table>                                </componentElement>                            </frame>                        </jr:listContents>                    </jr:list>                </componentElement>            </frame>        </band>    </detail></jasperReport>[/code]


 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Difficult to help... why do you use nested container elements (Frame -> List -> Frame  -> Table) ??? 

In my experiences the frame-element is a bit let's call - "buggy". At least, it doesn't behave always as expected. I just use frames if I place elements side by side, where the RemoveLineWhenBlank won't work... otherwise I avoid using frames, as the remaining space calculation seems to be "tricky" and sometimes the bands doesn't shrink, although the frame isn't as large as defined. But this is another topic.

Perhaps you should post your jrxml prepared with empty datasource(s) for your report to throw an eye on it.

hth + regards

C-Box

Link to comment
Share on other sites

  • Solution

Ok, a few things:

Missing data on tables: I have solve it putting a "Static Text" after the table on the frame. With this trick, now tables are printed with no problem.

Respect of the overflow error, I see on the source code of Jasper Reports and I have founded that is an internal limitation, on the HorizontalFillList.java.
 

Link to comment
Share on other sites

Sorry had unfortunately no time yesterday to take an eye on it. Why do you use the HorizontalPrintOrder in your List? As far as I know I always came in trouble when I mixed the printorder from calling main report and used subreports... (As I wrote already I don't like using list and frames). I just used horizontal print order when I designed some lables in multiple columns reports. For your table sample it should be enough to use the default vertical print order, as the content is just one column layout.

hth + regards 

C-Box

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...