iReport - montar relatorio

Pessoal, estou montando o seguinte relatorio:

  • Title
  • Page header
  • Detail - mostro os itens
  • Sumary

O problema é quando escolho varios itens, fica um espaço em branco conforme a imagem :

Não gostaria de deixar o espaço em branco na parte de baixo na pagina

Obs. o layout esta todo desconfigurado mesmo , pois depois que resolver este problema
vou configura-lo.

Alguem pode me ajudar ?

<?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="guiasadt" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="3acfeff1-b053-47a9-8d45-1c66dcf886b4">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="caminhologo" class="java.lang.String"/>
	<parameter name="empresa" class="java.lang.String"/>
	<parameter name="nroans" class="java.lang.String"/>
	<parameter name="nro" class="java.lang.String"/>
	<parameter name="pcodguia" class="java.lang.Integer">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="logo" class="java.io.InputStream">
		<parameterDescription><![CDATA[]]></parameterDescription>
	</parameter>
	<parameter name="codans" class="java.lang.String"/>
	<parameter name="codoper13" class="java.lang.Integer"/>
	<parameter name="nome14" class="java.lang.String"/>
	<parameter name="cnes15" class="java.lang.String"/>
	<parameter name="conselho17" class="java.lang.String"/>
	<parameter name="nroconselho18" class="java.lang.String"/>
	<parameter name="cbos20" class="java.lang.String"/>
	<parameter name="nomeprofissional41" class="java.lang.String"/>
	<parameter name="nomeprofissional16" class="java.lang.String"/>
	<parameter name="codigooperadora30" class="java.lang.String"/>
	<parameter name="nomecontratado31" class="java.lang.String"/>
	<parameter name="logradouro" class="java.lang.String"/>
	<parameter name="municipio" class="java.lang.String"/>
	<parameter name="uf37" class="java.lang.String"/>
	<parameter name="ibge38" class="java.lang.String"/>
	<parameter name="cep39" class="java.lang.String"/>
	<parameter name="cnes40" class="java.lang.String"/>
	<parameter name="conselhoprofissional42" class="java.lang.String"/>
	<parameter name="numeroconselho43" class="java.lang.String"/>
	<parameter name="cbo45" class="java.lang.String"/>
	<parameter name="dataemissao7" class="java.lang.String"/>
	<parameter name="nrocarteira8" class="java.lang.String"/>
	<parameter name="plano9" class="java.lang.String"/>
	<parameter name="validadecarteira10" class="java.lang.String"/>
	<parameter name="nome11" class="java.lang.String"/>
	<parameter name="nronacionalsaude12" class="java.lang.String"/>
	<parameter name="22" class="java.lang.String"/>
	<parameter name="codcid23" class="java.lang.String"/>
	<parameter name="indicacao24" class="java.lang.String"/>
	<parameter name="tpatend46" class="java.lang.String"/>
	<parameter name="indicacaoacidente47" class="java.lang.String"/>
	<parameter name="tiposaida48" class="java.lang.String"/>
	<parameter name="tipodoenca49" class="java.lang.String"/>
	<parameter name="tempodoenca50" class="java.lang.String"/>
	<parameter name="tempodoencao50t" class="java.lang.String"/>
	<parameter name="numtransacao5" class="java.lang.String"/>
	<parameter name="hora21" class="java.lang.String"/>
	<parameter name="obs64" class="java.lang.String"/>
	<parameter name="uf19" class="java.lang.String"/>
	<parameter name="uf44" class="java.lang.String"/>
	<parameter name="senha" class="java.lang.String"/>
	<parameter name="atendrn12" class="java.lang.String"/>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["C:\\Users\\Evandro\\Desktop\\relatorios\\"]]></defaultValueExpression>
	</parameter>
	<queryString language="SQL">
		<![CDATA[select i.codtab,i.codproc, tab.descricao,i.qtdsol,i.qtdaut from itensguia i LEFT OUTER JOIN tabproc tab ON (i.codproc = tab.codproc and i.codtab=tab.codtab)
where codguia = 4087 or codguia = 4086 or codguia = 4084
or codguia = 3988]]>
	</queryString>
	<field name="codtab" class="java.lang.String"/>
	<field name="codproc" class="java.lang.String"/>
	<field name="descricao" class="java.lang.String">
		<fieldDescription><![CDATA[Descrição da fatura]]></fieldDescription>
	</field>
	<field name="qtdsol" class="java.lang.Integer">
		<fieldDescription><![CDATA[Quant solicitada]]></fieldDescription>
	</field>
	<field name="qtdaut" class="java.lang.Integer">
		<fieldDescription><![CDATA[Quant autorizada]]></fieldDescription>
	</field>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="31" splitType="Stretch">
			<image>
				<reportElement uuid="7c16e319-1529-49d9-a0bc-e14d673919d7" x="45" y="3" width="143" height="26"/>
				<imageExpression><![CDATA[$P{caminhologo}]]></imageExpression>
			</image>
			<staticText>
				<reportElement uuid="970f3113-f36d-4b09-9b18-2ebaf5754d88" x="287" y="-1" width="306" height="18"/>
				<textElement>
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[Guia de Serviços Profissional / Serviço de ]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="fc89f7b5-f62a-4483-a136-046743fc5d6a" x="287" y="13" width="239" height="18"/>
				<textElement>
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[Diagnóstico e Terapia - SP/SADT]]></text>
			</staticText>
			<textField>
				<reportElement uuid="b3d4b160-1380-403a-9da6-cdbf8607ec7e" x="10" y="21" width="90" height="8"/>
				<textElement textAlignment="Right">
					<font size="6" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression>
			</textField>
			<rectangle>
				<reportElement uuid="e729582f-4f0f-4fee-aae2-2947d27d0310" x="104" y="19" width="51" height="8" backcolor="#000000"/>
			</rectangle>
			<textField>
				<reportElement uuid="94551ba5-2ca9-4726-ad77-d0021c3f934b" x="105" y="19" width="51" height="7" forecolor="#FFFFFF"/>
				<textElement>
					<font fontName="Arial" size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{nroans}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="607" y="16" width="78" height="9"/>
				<textElement textAlignment="Justified">
					<font fontName="Arial" size="7" isBold="false"/>
				</textElement>
				<text><![CDATA[2 - Nº Guia no Prestador]]></text>
			</staticText>
			<textField>
				<reportElement uuid="aff9beba-56c3-405d-ab4b-a2bee2ec9c08" x="691" y="14" width="85" height="12"/>
				<textElement>
					<font fontName="Arial" size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{pcodguia}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="170" splitType="Stretch">
			<staticText>
				<reportElement uuid="d6dabc9a-ad46-48a0-b437-2e6416be3578" x="305" y="66" width="276" height="20"/>
				<textElement/>
				<text><![CDATA[Esse espaço será preenchido]]></text>
			</staticText>
		</band>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="14" splitType="Stretch">
			<textField>
				<reportElement uuid="ce67b225-3226-4971-9138-c1024c73413f" x="71" y="3" width="92" height="9"/>
				<textElement>
					<font size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{codproc}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="9aa34e1b-a751-47ae-8ae9-03a6e38ef0bd" x="10" y="3" width="39" height="9"/>
				<textElement>
					<font size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{codtab}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="10784074-7a4c-4eea-9b55-0904e247d604" x="189" y="3" width="100" height="9"/>
				<textElement>
					<font size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{descricao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="eceeabfc-e658-441b-b56f-2b16e1cc0676" x="642" y="3" width="37" height="9"/>
				<textElement textAlignment="Center">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{qtdaut}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="331103ac-80b4-4bd8-9af8-9feca9f855fc" x="581" y="3" width="39" height="9"/>
				<textElement textAlignment="Center">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{qtdsol}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="179" splitType="Stretch">
			<rectangle>
				<reportElement uuid="e4ef79e4-afd9-42b8-9900-ff9a11552fa5" x="379" y="45" width="155" height="22" backcolor="#FFFFFF"/>
			</rectangle>
			<rectangle>
				<reportElement uuid="e4ef79e4-afd9-42b8-9900-ff9a11552fa5" x="300" y="45" width="75" height="22" backcolor="#FFFFFF"/>
			</rectangle>
			<rectangle>
				<reportElement uuid="e4ef79e4-afd9-42b8-9900-ff9a11552fa5" x="92" y="45" width="204" height="22" backcolor="#FFFFFF"/>
			</rectangle>
			<rectangle>
				<reportElement uuid="e4ef79e4-afd9-42b8-9900-ff9a11552fa5" x="10" y="45" width="78" height="22"/>
			</rectangle>
			<rectangle>
				<reportElement uuid="e4ef79e4-afd9-42b8-9900-ff9a11552fa5" x="10" y="13" width="119" height="22"/>
			</rectangle>
			<rectangle>
				<reportElement uuid="e4ef79e4-afd9-42b8-9900-ff9a11552fa5" x="11" y="72" width="790" height="66"/>
			</rectangle>
			<line>
				<reportElement uuid="65ad17e3-5073-43bb-941f-87d164af3943" x="329" y="65" width="16" height="1"/>
			</line>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="303" y="45" width="69" height="10"/>
				<textElement>
					<font fontName="Arial" size="7" isBold="false"/>
				</textElement>
				<text><![CDATA[34 - Tipo de Consulta]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="10" y="14" width="121" height="10"/>
				<textElement>
					<font fontName="Arial" size="7" isBold="false"/>
				</textElement>
				<text><![CDATA[29- Código na Operadora]]></text>
			</staticText>
			<line>
				<reportElement uuid="1194311f-47b4-4734-92a9-6b2e6dc1b569" x="174" y="58" width="1" height="7"/>
			</line>
			<rectangle>
				<reportElement uuid="e4ef79e4-afd9-42b8-9900-ff9a11552fa5" x="131" y="13" width="541" height="22"/>
			</rectangle>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="679" y="14" width="31" height="10"/>
				<textElement>
					<font fontName="Arial" size="7" isBold="false"/>
				</textElement>
				<text><![CDATA[31-CNES]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="10" y="45" width="78" height="10"/>
				<textElement>
					<font fontName="Arial" size="7" isBold="false"/>
				</textElement>
				<text><![CDATA[32-Tipo de Atendimento]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="379" y="45" width="154" height="10"/>
				<textElement>
					<font fontName="Arial" size="7" isBold="false"/>
				</textElement>
				<text><![CDATA[35 - Motivo de Encerramento do Atendimento]]></text>
			</staticText>
			<line>
				<reportElement uuid="1194311f-47b4-4734-92a9-6b2e6dc1b569" x="189" y="58" width="1" height="7"/>
			</line>
			<textField>
				<reportElement uuid="5e79f16f-cac1-4f3d-b21e-6bdcb95d09ae" x="174" y="55" width="17" height="10"/>
				<textElement textAlignment="Center">
					<font fontName="Arial" size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{indicacaoacidente47}]]></textFieldExpression>
			</textField>
			<rectangle>
				<reportElement uuid="e4ef79e4-afd9-42b8-9900-ff9a11552fa5" x="676" y="13" width="122" height="22" backcolor="#FFFFFF"/>
			</rectangle>
			<line>
				<reportElement uuid="65ad17e3-5073-43bb-941f-87d164af3943" x="443" y="65" width="16" height="1"/>
			</line>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="11" y="4" width="342" height="12"/>
				<textElement>
					<font fontName="Arial" size="7"/>
				</textElement>
				<text><![CDATA[Dados do Contratado Executante]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="96" y="45" width="199" height="10"/>
				<textElement>
					<font fontName="Arial" size="7" isBold="false"/>
				</textElement>
				<text><![CDATA[33 - Indicação de Acidente(Acidente ou doenças relacionadas]]></text>
			</staticText>
			<textField>
				<reportElement uuid="894fccfd-3cc0-4024-bac3-7c04bd751133" x="445" y="55" width="13" height="10"/>
				<textElement textAlignment="Center">
					<font fontName="Arial" size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tiposaida48}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="42a5a34c-1250-49f0-a030-04a02a5a2b78" x="14" y="23" width="110" height="10"/>
				<textElement textAlignment="Center">
					<font fontName="Arial" size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{codigooperadora30}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="1194311f-47b4-4734-92a9-6b2e6dc1b569" x="329" y="58" width="1" height="7"/>
			</line>
			<textField>
				<reportElement uuid="dc632fbd-1fe5-4615-9eb3-352954a0a847" x="35" y="55" width="20" height="10"/>
				<textElement textAlignment="Center">
					<font fontName="Arial" size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tpatend46}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="1194311f-47b4-4734-92a9-6b2e6dc1b569" x="458" y="58" width="1" height="7"/>
			</line>
			<line>
				<reportElement uuid="1194311f-47b4-4734-92a9-6b2e6dc1b569" x="59" y="58" width="1" height="8"/>
			</line>
			<line>
				<reportElement uuid="65ad17e3-5073-43bb-941f-87d164af3943" x="174" y="65" width="16" height="1"/>
			</line>
			<line>
				<reportElement uuid="1194311f-47b4-4734-92a9-6b2e6dc1b569" x="443" y="58" width="1" height="7"/>
			</line>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="11" y="36" width="77" height="9"/>
				<textElement>
					<font fontName="Arial" size="7"/>
				</textElement>
				<text><![CDATA[Dados do Atendimento]]></text>
			</staticText>
			<line>
				<reportElement uuid="1194311f-47b4-4734-92a9-6b2e6dc1b569" x="29" y="58" width="1" height="7"/>
			</line>
			<textField>
				<reportElement uuid="12d81783-473f-4d99-9ac1-fa1efd924a07" x="137" y="23" width="529" height="10"/>
				<textElement>
					<font fontName="Arial" size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{nomecontratado31}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="11474ef4-391b-4c54-9704-f4f7ee6410a4" x="137" y="14" width="121" height="10"/>
				<textElement>
					<font fontName="Arial" size="7" isBold="false"/>
				</textElement>
				<text><![CDATA[30 - Nome do Contratado]]></text>
			</staticText>
			<line>
				<reportElement uuid="1194311f-47b4-4734-92a9-6b2e6dc1b569" x="344" y="58" width="1" height="7"/>
			</line>
			<textField>
				<reportElement uuid="735ca249-817c-45c6-883c-6a744ac8e263" x="681" y="21" width="65" height="10"/>
				<textElement textAlignment="Left">
					<font fontName="Arial" size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{cnes40}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="65ad17e3-5073-43bb-941f-87d164af3943" x="29" y="65" width="30" height="1"/>
			</line>
			<subreport>
				<reportElement uuid="2962ad74-73e2-453b-af01-e7aa7fa4e1ef" x="14" y="141" width="200" height="37"/>
				<subreportParameter name="obs64"/>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "guiasadt_sub.jasper"]]></subreportExpression>
			</subreport>
		</band>
	</summary>
</jasperReport>




A imagem não apareceu… seria bom vê-la pra tentar ajudar. Se não der pra colocar, posta um link onde possamos vê-la.

Faltou realmente as imagens. rs