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

  • Home
  • SEARCH
  • 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 4076096
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:22:55+00:00 2026-05-20T17:22:55+00:00

I am Using latest version of Jasper Reports .I used two frames in detail

  • 0

I am Using latest version of Jasper Reports .I used two frames in detail section of Jasper Reports.One frame is containing all the needed fields in it and is set at top = 0 , second frame is exactly below the first one and contains only one filed.when the text in the text fields of the first frame is normal (fits within the width and do not stretch) the result is normal , means second frame is exactly printed below the first one . but if one of the text field is stretched if content over flows then it leaves some space between the two frames.

I wrote here the XML of my detail section.

<detail>
        <band height="40" splitType="Stretch">
            <frame>
                <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="430" height="20" isPrintWhenDetailOverflows="true"/>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="129" y="0" width="50" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{netWeight}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="179" y="0" width="50" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{metalRate}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="54" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{productName}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="229" y="0" width="22" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{ratePer}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="251" y="0" width="25" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{ratePerUnit}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="364" y="0" width="66" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{totalAmount}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="104" y="0" width="25" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{piece}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="54" y="0" width="50" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{itemName}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="320" y="0" width="44" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{vatAmount}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement stretchType="RelativeToTallestObject" x="276" y="0" width="44" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{labourAmount}]]></textFieldExpression>
                </textField>
            </frame>
            <frame>
                <reportElement x="0" y="20" width="430" height="20" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true">
                    <printWhenExpression><![CDATA[$F{narration} != null && (!$F{narration}.equals("NONE")) && $F{narration}.length > 0]]></printWhenExpression>
                </reportElement>
                <staticText>
                    <reportElement x="0" y="0" width="50" height="20"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <text><![CDATA[Narration]]></text>
                </staticText>
                <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                    <reportElement x="50" y="0" width="380" height="20" isPrintWhenDetailOverflows="true"/>
                    <box leftPadding="1">
                        <pen lineWidth="1.0"/>
                        <topPen lineWidth="1.0"/>
                        <leftPen lineWidth="1.0"/>
                        <bottomPen lineWidth="1.0"/>
                        <rightPen lineWidth="1.0"/>
                    </box>
                    <textElement>
                        <font size="9"/>
                    </textElement>
                    <textFieldExpression class="java.lang.String"><![CDATA[$F{narration}]]></textFieldExpression>
                </textField>
            </frame>
        </band>
    </detail>
  • 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-20T17:22:55+00:00Added an answer on May 20, 2026 at 5:22 pm

    I have got solution , so i am posting it here , so anyone if encountered same problem will use this.

    Try setting your frames to
    positionType=”Float”.

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

Sidebar

Related Questions

I am currently building an Excel 2007 Add-in using VSTO (latest version + sp1)
A rather odd experience. Using the latest PDK (v7.3) from ActiveState, I used perlctrl
How could I ensure that all the clients will always be using the latest
I am using latest version of jQuery Autocompletion plugin and have populated an array
Using the latest version of Resharper (4.5.x) with VS2008. Every now and then (pretty
Using the latest version of EasyMock, I have a method that I need to
My configure.in file has LT_VERSION=1.1 . I am using the latest version of autoconf
Could someone explain why both tests using the latest versions of Moq and Rhino.Mocks
I'm using ccl/openmcl on Mac OS X. (latest versions of both). When the lisp
I'm using the latest nightly build, VS2008 prof trial and .NET 3.5 and I'm

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.