Problemas quebra pagina usando SubRelatorio no iReport-2.0.4

5 respostas
N

Então, estou com o seguinte problema,

eu tenho um relatorio, e o detail dele qdo tem muito dados ultrapassa o tamanho da folha, ate ai td ok.

So por exemplo, o relatorio usar uma pagina e meia a proxima começa no meio da pagina, eu queria q ela pulssa pra proxima pagina.

ja fiz o editar -->inserir quebra de pagina, e não adiantou nada…

alguém ja passou por isso…segue meu jrxml

<?xml version="1.0" encoding="UTF-8" ?>






<parameter name="CAMINHO_IMAGENS" isForPrompting="true" class="java.lang.String">
	<defaultValueExpression ><![CDATA["C:\\java\\digicon\\Metro_Rio\\WebRoot\\img"
]]>



















= TO_DATE($P{paramDataInicial} ,'dd/mm/yyyy hh24:mi:ss')
AND trt.dt_abertura_turno <= TO_DATE($P{paramDataFinal}  ,'dd/mm/yyyy hh24:mi:ss')
and trt.ni_seqterm = decode($P{niSeqTerm},null,trt.ni_seqterm, $P{niSeqTerm}) 
and trt.ni_codoperador_abertura = decode($P{idOperador},null,trt.ni_codoperador_abertura, $P{idOperador})
and trt.ni_idlocal = decode($P{idLocal},null,trt.ni_idlocal, $P{idLocal})]]>
<field name="idTurno" class="java.lang.Integer"/>
<field name="ABERTURATURNO" class="java.sql.Timestamp"/>
<field name="OPERADOR" class="java.math.BigDecimal"/>
<field name="NOMEOPERADOR" class="java.lang.String"/>
<field name="DESCRICAOTERMINAL" class="java.lang.String"/>
<field name="IP" class="java.lang.String"/>


	<group  name="resumo" isResetPageNumber="true" >
		<groupExpression><![CDATA[null]]></groupExpression>
		<groupHeader>
		<band height="0"  isSplitAllowed="true" >
		</band>
		</groupHeader>
		<groupFooter>
		<band height="0"  isSplitAllowed="true" >
		</band>
		</groupFooter>
	</group>
	<background>
		<band height="0"  isSplitAllowed="true" >
		</band>
	</background>
	<title>
		<band height="63"  isSplitAllowed="true" >
			<image  evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					x="2"
					y="6"
					width="59"
					height="44"
					key="image-1"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<graphicElement stretchType="NoStretch" pen="None"/>
				<imageExpression class="java.lang.String"><![CDATA[$P{CAMINHO_IMAGENS} + "\\logo_peq.jpg"]]></imageExpression>
			</image>
			<staticText>
				<reportElement
					x="71"
					y="10"
					width="316"
					height="28"
					key="staticText-18"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Center">
					<font pdfFontName="Helvetica-Bold" size="18" isBold="true"/>
				</textElement>
			<text><![CDATA[Relatório do Extrato de Turno]]></text>
			</staticText>
			<line direction="TopDown">
				<reportElement
					x="2"
					y="61"
					width="534"
					height="0"
					forecolor="#000000"
					key="line-1"
					positionType="FixRelativeToBottom"/>
				<graphicElement stretchType="NoStretch" pen="2Point"/>
			</line>
			<staticText>
				<reportElement
					x="397"
					y="6"
					width="126"
					height="21"
					key="staticText-19"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Right">
					<font pdfFontName="Helvetica" size="12" isBold="false"/>
				</textElement>
			<text><![CDATA[Periodo:]]></text>
			</staticText>
			<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					x="397"
					y="27"
					width="126"
					height="34"
					key="textField-9"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Right">
					<font/>
				</textElement>
			<textFieldExpression   class="java.lang.String"><![CDATA[$P{paramDataInicial}+ " a " + $P{paramDataFinal}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="28"  isSplitAllowed="true" >
			<staticText>
				<reportElement
					mode="Opaque"
					x="2"
					y="5"
					width="528"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-2">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[Fechamento de Caixa]]></text>
			</staticText>
			<staticText>
				<reportElement
					x="7"
					y="5"
					width="475"
					height="16"
					forecolor="#000000"
					key="staticText-17">
						<printWhenExpression><![CDATA[new Boolean( $F{idTurno} == null ? true : false )]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement>
					<font/>
				</textElement>
			<text><![CDATA[Nenhum item encontrado]]></text>
			</staticText>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="0"  isSplitAllowed="true" >
		</band>
	</columnHeader>
	<detail>
		<band height="382"  isSplitAllowed="true" >
			<staticText>
				<reportElement
					mode="Opaque"
					x="7"
					y="8"
					width="66"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-11">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Bottom" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[Abertura:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH.mm.ss" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					mode="Opaque"
					x="73"
					y="8"
					width="168"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="textField-4">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Bottom" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<textFieldExpression   class="java.sql.Timestamp"><![CDATA[$F{ABERTURATURNO}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement
					mode="Opaque"
					x="264"
					y="7"
					width="24"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-12">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Bottom" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[Op:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					mode="Opaque"
					x="288"
					y="7"
					width="28"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="textField-5">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Bottom" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{OPERADOR}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					mode="Opaque"
					x="317"
					y="7"
					width="156"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="textField-6">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Bottom" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<textFieldExpression   class="java.lang.String"><![CDATA[$F{NOMEOPERADOR}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement
					mode="Opaque"
					x="7"
					y="33"
					width="66"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-15">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Bottom" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[Terminal:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					mode="Opaque"
					x="287"
					y="32"
					width="168"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="textField-7">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Bottom" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<textFieldExpression   class="java.lang.String"><![CDATA[$F{IP}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					mode="Opaque"
					x="74"
					y="33"
					width="168"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="textField-8">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Bottom" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<textFieldExpression   class="java.lang.String"><![CDATA[$F{DESCRICAOTERMINAL}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement
					mode="Opaque"
					x="263"
					y="33"
					width="25"
					height="18"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-16">
						<printWhenExpression><![CDATA[new Boolean((!($F{idTurno}.equals(""))))]]></printWhenExpression>
					</reportElement>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Bottom" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[IP:]]></text>
			</staticText>
			<subreport  isUsingCache="true">
				<reportElement
					mode="Opaque"
					x="28"
					y="-70"
					width="0"
					height="0"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="subreport-5"/>
			</subreport>
			<subreport  isUsingCache="true">
				<reportElement
					mode="Opaque"
					x="7"
					y="277"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="subreport-11"
					positionType="Float"/>
				<subreportParameter  name="idTurno">
					<subreportParameterExpression><![CDATA[$F{idTurno}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter  name="SUBREPORT_DIR">
					<subreportParameterExpression><![CDATA[$P{CAMINHO_RELATORIO}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression  class="java.lang.String"><![CDATA[$P{CAMINHO_RELATORIO} + "\\rptResumoAbastecimento.jasper"]]></subreportExpression>
			</subreport>
			<staticText>
				<reportElement
					mode="Opaque"
					x="7"
					y="255"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-7"
					positionType="Float"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[Resumo do Abastecimento]]></text>
			</staticText>
			<subreport  isUsingCache="true">
				<reportElement
					mode="Opaque"
					x="7"
					y="231"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="subreport-12"
					positionType="Float"/>
				<subreportParameter  name="idTurno">
					<subreportParameterExpression><![CDATA[$F{idTurno}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter  name="SUBREPORT_DIR">
					<subreportParameterExpression><![CDATA[$P{CAMINHO_RELATORIO}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression  class="java.lang.String"><![CDATA[$P{CAMINHO_RELATORIO} + "\\rptResumoRecompra.jasper"]]></subreportExpression>
			</subreport>
			<staticText>
				<reportElement
					mode="Opaque"
					x="7"
					y="209"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-8"
					positionType="Float"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[Resumo de Retorno de Cartões]]></text>
			</staticText>
			<subreport  isUsingCache="true">
				<reportElement
					mode="Opaque"
					x="7"
					y="136"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="subreport-13"
					positionType="Float"/>
				<subreportParameter  name="idTurno">
					<subreportParameterExpression><![CDATA[$F{idTurno}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter  name="SUBREPORT_DIR">
					<subreportParameterExpression><![CDATA[$P{CAMINHO_RELATORIO}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression  class="java.lang.String"><![CDATA[$P{CAMINHO_RELATORIO} + "\\rptResumoOperacoes.jasper"]]></subreportExpression>
			</subreport>
			<staticText>
				<reportElement
					mode="Opaque"
					x="7"
					y="114"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-9"
					positionType="Float"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[Resumo Operações]]></text>
			</staticText>
			<subreport  isUsingCache="true">
				<reportElement
					mode="Opaque"
					x="7"
					y="90"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="subreport-14"
					positionType="Float"/>
				<subreportParameter  name="idTurno">
					<subreportParameterExpression><![CDATA[$F{idTurno}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter  name="SUBREPORT_DIR">
					<subreportParameterExpression><![CDATA[$P{CAMINHO_RELATORIO}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression  class="java.lang.String"><![CDATA[$P{CAMINHO_RELATORIO} + "\\rptAberturaCaixa.jasper"]]></subreportExpression>
			</subreport>
			<subreport  isUsingCache="true">
				<reportElement
					mode="Opaque"
					x="7"
					y="66"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="subreport-15"
					positionType="Float"/>
				<subreportParameter  name="idTurno">
					<subreportParameterExpression><![CDATA[$F{idTurno}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter  name="SUBREPORT_DIR">
					<subreportParameterExpression><![CDATA[$P{CAMINHO_RELATORIO}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression  class="java.lang.String"><![CDATA[$P{CAMINHO_RELATORIO} + "\\rptExtratroTroco.jasper"]]></subreportExpression>
			</subreport>
			<subreport  isUsingCache="true">
				<reportElement
					mode="Opaque"
					x="7"
					y="324"
					width="483"
					height="20"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="subreport-16"
					positionType="Float"/>
				<subreportParameter  name="idTurno">
					<subreportParameterExpression><![CDATA[$F{idTurno}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter  name="SUBREPORT_DIR">
					<subreportParameterExpression><![CDATA[$P{CAMINHO_RELATORIO}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression  class="java.lang.String"><![CDATA[$P{CAMINHO_RELATORIO} + "\\rptResumoTotais.jasper"]]></subreportExpression>
			</subreport>
			<subreport  isUsingCache="true">
				<reportElement
					mode="Opaque"
					x="7"
					y="346"
					width="483"
					height="24"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="subreport-17"
					positionType="Float"/>
				<subreportParameter  name="idTurno">
					<subreportParameterExpression><![CDATA[$F{idTurno}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter  name="SUBREPORT_DIR">
					<subreportParameterExpression><![CDATA[$P{CAMINHO_RELATORIO}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression  class="java.lang.String"><![CDATA[$P{CAMINHO_RELATORIO} + "\\rptResumoTotaisiCartao.jasper"]]></subreportExpression>
			</subreport>
			<staticText>
				<reportElement
					mode="Opaque"
					x="7"
					y="298"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-13"
					positionType="Float"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[Resumo Totais:]]></text>
			</staticText>
			<staticText>
				<reportElement
					mode="Opaque"
					x="7"
					y="159"
					width="483"
					height="21"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="staticText-14"
					positionType="Float"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">
					<font fontName="Courier New" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<text><![CDATA[Resumo de Sangria]]></text>
			</staticText>
			<subreport  isUsingCache="true">
				<reportElement
					mode="Opaque"
					x="7"
					y="184"
					width="483"
					height="20"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="subreport-18"
					positionType="Float"/>
				<subreportParameter  name="idTurno">
					<subreportParameterExpression><![CDATA[$F{idTurno}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter  name="SUBREPORT_DIR">
					<subreportParameterExpression><![CDATA[$P{CAMINHO_RELATORIO}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression  class="java.lang.String"><![CDATA[$P{CAMINHO_RELATORIO} + "\\resumoSangrias.jasper"]]></subreportExpression>
			</subreport>
		</band>
	</detail>
	<columnFooter>
		<band height="0"  isSplitAllowed="true" >
		</band>
	</columnFooter>
	<pageFooter>
		<band height="24"  isSplitAllowed="true" >
			<textField isStretchWithOverflow="false" pattern="EEE, d MMM yyyy HH:mm:ss" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					mode="Opaque"
					x="14"
					y="2"
					width="209"
					height="19"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="textField-1"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">
					<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<textFieldExpression   class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					mode="Opaque"
					x="311"
					y="5"
					width="170"
					height="19"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="textField-2"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single">
					<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<textFieldExpression   class="java.lang.String"><![CDATA["¡gina " + $V{PAGE_NUMBER} + " de "]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
				<reportElement
					mode="Opaque"
					x="492"
					y="1"
					width="36"
					height="19"
					forecolor="#000000"
					backcolor="#FFFFFF"
					key="textField-3"/>
				<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single">
					<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
				</textElement>
			<textFieldExpression   class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band height="0"  isSplitAllowed="true" >
		</band>
	</summary>

5 Respostas

V

alem d vc cria a quebra d pagina vc tem q criar grupo onde for a quebra. alem d uma opcao em comecar em uma nova pagina.

Passos

  • Cria o grupo onde será a quebra d pagina. e informar qual será a quebra, se é em uma nova pagina, coluna , etc. em “group expression” ou algo parecido colocar o campo q será a quebra
N

mas como eu vou criar esse grupo expression?

valew

V

na verdade nao é criar group expression. group expression é o campo onde faz a quebra.
vamos por partes.

vai onde cria o grupo.
ai tem o nome do grupo.
em baixo tem as formas d quebra d pagina
em baixo tem um pequeno campo q num sei o é e logo abaixo tem um campo grande e do lado tem um icone q tem um lapis, se clicar nesse lapis irá abrir um editor e la vc informa o campo, variavel ou parametro. entao vc escolha a quebra.
isso é tudo no proprio ireport não tem implementação. tudo bem visual.

o meu ireport é em ingles por isso é group expression, se o seu for portugues deve estar com outro nome. Relecionada a grupo ou coisa parecida

P

Acho que é os elementos do seu pageHeader, eles estão com o “Position type” com o valor “Fix relative to top”, mude para “float”

A

Dá uma lida nesse tópico…

Acho que o cara tinha um problema parecido com o teu…

Abraços…

http://www.guj.com.br/posts/list/85385.java

Criado 24 de março de 2008
Ultima resposta 24 de mar. de 2008
Respostas 5
Participantes 4