Results 1 to 5 of 5

Thread: Plz Help

  1. #1
    Deepa is offline Member
    Join Date
    Nov 2008
    Posts
    85
    Rep Power
    0

    Default Plz Help

    Hi all,
    i like to generate the pdf by using jasper report tool and jrxml.But i can get the following error message
    Exception in thread "main" net.sf.jasperreports.engine.JRException: Report design not valid :
    1. The detail section, the page and column headers and footers and the margins do not fit the page height.
    Plz help anyone...

    Thanks in advance

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

  3. #3
    Deepa is offline Member
    Join Date
    Nov 2008
    Posts
    85
    Rep Power
    0

    Default Re:

    Thank u..This website is useful to me...But i didnt rectify the pblm what i mentioned above...

  4. #4
    JohnnyR is offline Member
    Join Date
    Feb 2009
    Posts
    46
    Rep Power
    0

    Default

    You havn't really provided any information for people to go off, other that i'm getting this error message.

    You've even entered the exact reason for it occuring however?
    '1. The detail section, the page and column headers and footers and the margins do not fit the page height. '

    I would start with what your headers/footers and margins are and if thet fit the page?

  5. #5
    Deepa is offline Member
    Join Date
    Nov 2008
    Posts
    85
    Rep Power
    0

    Default Re:

    This is my code.. i got an above errror message ,when i change the jasper report attribute values(pageWidth,pageHeight,columnWidth) for the Text in RED....

    <jasperReport name="SimpleReport"
    columnCount="1"
    printOrder="Horizontal"
    orientation="Portrait"
    pageWidth="995"
    pageHeight="965"
    columnWidth="900"
    columnSpacing="0"
    leftMargin="20"
    rightMargin="20"
    topMargin="30"
    bottomMargin="30"
    whenNoDataType="NoPages"
    isTitleNewPage="false"
    isSummaryNewPage="false"
    isFloatColumnFooter="false">
    <parameter name="imgBB" class="java.lang.String"/>
    <parameter name="imgBF" class="java.lang.String"/>
    <parameter name="imgG" class="java.lang.String"/>
    <detail>
    <band height="965">
    <image>
    <reportElement x="130" y="15" width="600" height="300"/>
    <graphicElement/>
    <imageExpression >
    <![CDATA[$P{imgBB}]]>
    </imageExpression>
    </image>
    <image>
    <reportElement x="130" y="345" width="600" height="300"/>
    <graphicElement/>
    <imageExpression >
    <![CDATA[$P{imgBF}]]>
    </imageExpression>
    </image>


    <image vAlign="Middle">
    <reportElement x="130" y="665" width="600" height="300" />
    <graphicElement />
    <imageExpression class="java.io.File">
    <![CDATA[new File($P{imgG})]]>
    </imageExpression>
    </image>


    </band>
    </detail>
    </jasperReport>
    Last edited by Deepa; 03-05-2009 at 07:16 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •