Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6996163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:07:17+00:00 2026-05-27T20:07:17+00:00

I am using List component iReport the data is populating but the pdf has

  • 0

I am using List component iReport the data is populating but the pdf has two pages. The data in 2nd page is same as first page. I have 25 records in db and I want to populate in one page. The table data keep repeating in pdf pages. Is there any setting in list to avoid it? I will appreciate for your great help.

<?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="test" language="groovy" pageWidth="595" pageHeight="842" 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"/>
    <subDataset name="dataset1">
        <parameter name="ID" class="java.lang.Integer"/>
        <queryString>
            <![CDATA[select * from CALENDAR WHERE REGION=$P{ID} ]]>
        </queryString>
        <field name="ID" class="java.lang.Integer"/>
        <field name="NAME" class="java.lang.String"/>
        <field name="REGION" class="java.lang.Integer"/>
        <field name="YEAR" class="java.lang.Integer"/>
        <field name="HOLIDAY_NAME" class="java.lang.String"/>
        <field name="DATE_PICKER" class="java.sql.Date"/>
        <field name="APPLICABLE_FROM" class="java.sql.Date"/>
        <field name="APPLICABLE_TO" class="java.sql.Date"/>
    </subDataset>
    <parameter name="ID" class="java.lang.Integer"/>
    <queryString>
        <![CDATA[select * from USERS]]>
    </queryString>
    <field name="ID" class="java.lang.Integer"/>
    <field name="EMP_ID" class="java.lang.Integer"/>
    <field name="LEVEL_ID" class="java.lang.Integer"/>
    <field name="REG_DIV_ID" class="java.lang.Integer"/>
    <field name="PROFILE_ID" class="java.lang.Integer"/>
    <field name="FINANCE_ID" class="java.lang.Integer"/>
    <field name="NOMINEE_ID" class="java.lang.Integer"/>
    <field name="PASSPORT_ID" class="java.lang.Integer"/>
    <field name="PERSONAL_ID" class="java.lang.Integer"/>
    <field name="SALARY_ID" class="java.lang.Integer"/>
    <field name="STATUS" class="java.lang.Boolean"/>
    <field name="CREATE_DATE" class="java.sql.Timestamp"/>
    <background>
        <band splitType="Stretch"/>
    </background>
    <pageHeader>
        <band height="87">
            <image>
                <reportElement positionType="Float" x="52" y="38" width="123" height="47"/>
                <imageExpression class="java.lang.String"><![CDATA["/home/user/Desktop/image003.jpg"]]></imageExpression>
            </image>
            <image>
                <reportElement positionType="Float" x="453" y="30" width="62" height="55"/>
                <imageExpression class="java.lang.String"><![CDATA["/home/user/Desktop/image002.jpg"]]></imageExpression>
            </image>
        </band>
    </pageHeader>
    <columnHeader>
        <band splitType="Stretch"/>
    </columnHeader>
    <detail>
        <band height="89" splitType="Stretch">
            <componentElement>
                <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="52" y="53" width="464" height="29"/>
                <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">
                        <datasetParameter name="ID">
                            <datasetParameterExpression><![CDATA[$P{ID}]]></datasetParameterExpression>
                        </datasetParameter>
                        <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
                    </datasetRun>
                    <jr:listContents height="29" width="464">
                        <textField>
                            <reportElement positionType="Float" stretchType="RelativeToBandHeight" x="28" y="5" width="197" height="20"/>
                            <textElement/>
                            <textFieldExpression class="java.lang.String"><![CDATA[$F{HOLIDAY_NAME}+"  "]]></textFieldExpression>
                        </textField>
                        <line>
                            <reportElement x="0" y="27" width="464" height="1"/>
                        </line>
                        <line>
                            <reportElement x="0" y="1" width="1" height="28"/>
                        </line>
                        <line>
                            <reportElement x="463" y="0" width="1" height="28"/>
                        </line>
                        <line>
                            <reportElement x="225" y="0" width="1" height="28"/>
                        </line>
                        <textField>
                            <reportElement positionType="Float" stretchType="RelativeToBandHeight" x="301" y="6" width="100" height="20"/>
                            <textElement/>
                            <textFieldExpression class="java.lang.String"><![CDATA[$F{DATE_PICKER}]]></textFieldExpression>
                        </textField>
                    </jr:listContents>
                </jr:list>
            </componentElement>
            <rectangle>
                <reportElement x="52" y="30" width="464" height="23" backcolor="#DD6626"/>
            </rectangle>
            <textField>
                <reportElement x="80" y="35" width="181" height="23"/>
                <textElement>
                    <font size="12" isBold="true"/>
                </textElement>
                <textFieldExpression class="java.lang.String"><![CDATA["HOLIDAYS LIST"]]></textFieldExpression>
            </textField>
            <textField>
                <reportElement x="353" y="35" width="124" height="23"/>
                <textElement>
                    <font size="12" isBold="true"/>
                </textElement>
                <textFieldExpression class="java.lang.String"><![CDATA["DATE"]]></textFieldExpression>
            </textField>
        </band>
    </detail>
    <columnFooter>
        <band splitType="Stretch"/>
    </columnFooter>
    <pageFooter>
        <band height="35" splitType="Stretch"/>
    </pageFooter>
    <summary>
        <band splitType="Stretch"/>
    </summary>
</jasperReport>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:07:18+00:00Added an answer on May 27, 2026 at 8:07 pm

    Your report is designed so the List repeats for every user. If that’s not what you want then you need to either change the main query select * from USERS to something that returns only a single row, or you need to move the List into a band that does not repeat (like the Title or the Summary band).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list component which is filled out using a data store(data loaded
I'm working on a tree component using a XMLLIST as a data provider. <list>
I'm using custom renderer on JList, but none of components rendered are accessible. list.setCellRenderer(new
I'm using a list of objects as the data source of my GridView and
I'm using Component Manager in a Mac app to get the list of installed
I am using a HorizontalList component to display a list of images, you can
When using a List component, instead of a Repeater, how do I transfer a
how do i get an ordered list using htmltext property of Text component? I
I have a component extending a Spark List, and when I scroll using the
I want to create a list with flash cs3 using the accordion component (the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.