Results 1 to 5 of 5
Thread: Plz Help
- 03-04-2009, 10:54 AM #1
Member
- Join Date
- Nov 2008
- Posts
- 85
- Rep Power
- 0
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
Plz help anyone...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.
Thanks in advance
- 03-04-2009, 12:15 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
- 03-05-2009, 05:30 AM #3
Member
- Join Date
- Nov 2008
- Posts
- 85
- Rep Power
- 0
Re:
Thank u..This website is useful to me...But i didnt rectify the pblm what i mentioned above...
- 03-05-2009, 05:51 AM #4
Member
- Join Date
- Feb 2009
- Posts
- 46
- Rep Power
- 0
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?
- 03-05-2009, 06:13 AM #5
Member
- Join Date
- Nov 2008
- Posts
- 85
- Rep Power
- 0
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 06:16 AM.


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks