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

Page not fully used with subreport


stopbugginme

Recommended Posts

Hi jasperReport-Forum!

I'm a newbie and noticed a rather strange behaviour, at lest by my expectations.

When I use a Subreport the first page looks fine, but on the following pages only a rather small portion of the page is used to display the data.

First Page-Pictrue: (sorry, the images wouldn't upload using the forums integrated feature)

img5.imagebanana.com/view/enfe6qv1/firstPage.jpg

other pages.

img5.imagebanana.com/view/1je515w9/secondPage.jpg


The free space seems to match the space taken by the other Elements in the title of the MasterReport (the subreport is also in the Title ín Order to only execute it once).

Could anybody explain my mistake?

The Code:


MasterReport:pastebin.com/m7138b4e7
Subreport:pastebin.com/m59835eeb
Java-Main:pastebin.com/m3b9e78b5
Java-DB:pastebin.com/m7ba400b1
Java-Jasper:pastebin.com/m54d91ae3


Thanks for your help,

 

ps, the attached Code is the SubReport, the rar contains all the files

Marc

Code:
<?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="sub" columnCount="2" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="250" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">	<field name="name" class="java.lang.String"/>	<detail>		<band height="13" splitType="Stretch">			<textField>				<reportElement x="0" y="0" width="595" height="13"/>				<textElement/>				<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>			</textField>		</band>	</detail></jasperReport>
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi jasperForum!

 

I solved It! Apparently the isPrintWhenDetailOverflows="true" Flag was causing the issue (it was set on the reportElement of the subreport). Deleting it in oder to revert it to its default setting of false solves the issue and prints fully used pages!

 

Thanks

Marc



Post Edited by stopbugginme at 10/21/2009 08:24
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...