stopbugginme Posted October 19, 2009 Share Posted October 19, 2009 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.jpgother pages.img5.imagebanana.com/view/1je515w9/secondPage.jpgThe 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/m7138b4e7Subreport:pastebin.com/m59835eebJava-Main:pastebin.com/m3b9e78b5Java-DB:pastebin.com/m7ba400b1Java-Jasper:pastebin.com/m54d91ae3Thanks for your help, ps, the attached Code is the SubReport, the rar contains all the filesMarcCode:<?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 More sharing options...
stopbugginme Posted October 21, 2009 Author Share Posted October 21, 2009 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! ThanksMarcPost Edited by stopbugginme at 10/21/2009 08:24 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now