Jump to content
Changes to the Jaspersoft community edition download ×

Setting the PageSize - Terrible


ktrinad

Recommended Posts

By: FRANCISCO SOUZA - chicojava

Setting the PageSize - Terrible

2004-03-30 01:37

People, please, could anybody tell me how can I set the page size properly?????

My world is being a trully hell at the moment, I have tried hundred of times to set a pagesize to 22x14cm, but not success. I need a page with just the Detail band wich must have 14cm Height and 22cm Width, just that, AND I want the SPACE BETWEEN the pages EXACTLY 1.5cm, IS THAT POSSIBLE?

 

HERE IS MY XML FILE:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!-- Created with iReport - A designer for JasperReports -->

<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport

name="LUAJO"

columnCount="1"

printOrder="Vertical"

orientation="Portrait"

pageWidth="655"

pageHeight="388"

columnWidth="636"

columnSpacing="0"

leftMargin="19"

rightMargin="0"

topMargin="1"

bottomMargin="0"

whenNoDataType="NoPages"

isTitleNewPage="false"

isSummaryNewPage="false">

<queryString><![CDATA[sELECT dc.conhecimento,co.CALCULADO_ATE, IF(co.REDES_PAGO='S','X',' ') REDESPACHO_PAGO_SIM,IF(co.REDES_PAGO='N','X',' ') REDESPACHO_PAGO_NAO, IF(pf.id_pagador=dc.remetente_cnpj_cpf,'X',' ') PAGO,IF(pf.id_pagador=dc.destinatario_cnpj_cpf,'X',' ') PAGAR,co.d_emissao EMISSAO,CONCAT(LEFT(co.cfop,1),'.',SUBSTRING(co.cfop,2,3)) CFOP_FORMATADO,'Presta  o de Servi os de Transportes' NATUREZA,dc.remetente_nome,dc.remetente_endereco,dc.remetente_bairro,dc.remetente_cidade,dc.remetente_uf,dc.remetente_cep,dc.remetente_cnpj_cpf,dc.remetente_ie,dc.destinatario_nome,dc.destinatario_endereco,dc.destinatario_bairro,dc.destinatario_cidade,dc.destinatario_uf,dc.destinatario_cep,dc.destinatario_cnpj_cpf,dc.destinatario_ie,dc.tomador_nome,dc.tomador_endereco,dc.tomador_bairro,dc.tomador_cidade,dc.tomador_uf,dc.tomador_cep,dc.tomador_cnpj_cpf,dc.tomador_ie,dc.redespacho_nome,dc.redespacho_endereco,dc.redespacho_bairro,dc.redespacho_cidade,dc.redespacho_uf,dc.redespacho_cep,dc.redespacho_cnpj_cpf,dc.redespacho_ie,mo.Nome MOTORISTA,ve.placa,ve.UF,ve.tipo,co.natureza co_natureza,co.especie,co.quantidade,IF(co.metroscubicos=0.0, co.pesototal,co.metroscubicos) PESO_MEDIDA,co.notas1 NOTAS,co.valornotas VALOR_MERCADORIA,CONCAT(co.notas2,' ',co.notas3,' ',co.notas4) OBSERVACAO,co.valor_fretepeso FRETE_PESO,(co.taxa_sobrefrete/100)*co.valornotas FRETE_VALOR,co.valor_prestacao FRETE_VALOR,co.valor_cat FRETE_VALOR_CAT,co.valor_redespacho FRETE_VALOR_REDESPACHO,co.valor_pedagio FRETE_VALOR_PEDAGIO,co.valor_gris FRETE_VALOR_GRIS,co.valor_outros FRETE_VALOR_OUTROS,co.valor_prestacao FRETE_VALOR_PRESTACAO,co.base_icms FRETE_VALOR_BASE,co.aliq_icms FRETE_ALIQ_ICMS,co.valor_icms FRETE_VALOR_ICMS FROM dados_conhecimento dc,pagamento_fretes pf,conhecimento co,veiculos ve,motoristas mo WHERE dc.conhecimento=pf.conhecimento AND co.numero=dc.conhecimento AND co.veiculo=ve.Placa AND mo.cpf=co.cpf_motorista]]></queryString>

<field name="CONHECIMENTO" class="java.lang.String"/>

<field name="CALCULADO_ATE" class="java.lang.String"/>

<field name="REDESPACHO_PAGO_SIM" class="java.lang.String"/>

<field name="REDESPACHO_PAGO_NAO" class="java.lang.String"/>

<field name="PAGO" class="java.lang.String"/>

<field name="PAGAR" class="java.lang.String"/>

<field name="EMISSAO" class="java.util.Date"/>

<field name="NATUREZA" class="java.lang.String"/>

<field name="CFOP_FORMATADO" class="java.lang.String"/>

<field name="REMETENTE_NOME" class="java.lang.String"/>

<field name="REMETENTE_ENDERECO" class="java.lang.String"/>

<field name="REMETENTE_BAIRRO" class="java.lang.String"/>

<field name="REMETENTE_CIDADE" class="java.lang.String"/>

<field name="REMETENTE_UF" class="java.lang.String"/>

<field name="REMETENTE_CEP" class="java.lang.String"/>

<field name="REMETENTE_CNPJ_CPF" class="java.lang.String"/>

<field name="REMETENTE_IE" class="java.lang.String"/>

<field name="DESTINATARIO_NOME" class="java.lang.String"/>

<field name="DESTINATARIO_ENDERECO" class="java.lang.String"/>

<field name="DESTINATARIO_BAIRRO" class="java.lang.String"/>

<field name="DESTINATARIO_CIDADE" class="java.lang.String"/>

<field name="DESTINATARIO_UF" class="java.lang.String"/>

<field name="DESTINATARIO_CEP" class="java.lang.String"/>

<field name="DESTINATARIO_CNPJ_CPF" class="java.lang.String"/>

<field name="DESTINATARIO_IE" class="java.lang.String"/>

<field name="TOMADOR_NOME" class="java.lang.String"/>

<field name="TOMADOR_ENDERECO" class="java.lang.String"/>

<field name="TOMADOR_BAIRRO" class="java.lang.String"/>

<field name="TOMADOR_CIDADE" class="java.lang.String"/>

<field name="TOMADOR_UF" class="java.lang.String"/>

<field name="TOMADOR_CEP" class="java.lang.String"/>

<field name="TOMADOR_CNPJ_CPF" class="java.lang.String"/>

<field name="TOMADOR_IE" class="java.lang.String"/>

<field name="REDESPACHO_NOME" class="java.lang.String"/>

<field name="REDESPACHO_ENDERECO" class="java.lang.String"/>

<field name="REDESPACHO_BAIRRO" class="java.lang.String"/>

<field name="REDESPACHO_CIDADE" class="java.lang.String"/>

<field name="REDESPACHO_UF" class="java.lang.String"/>

<field name="REDESPACHO_CEP" class="java.lang.String"/>

<field name="REDESPACHO_CNPJ_CPF" class="java.lang.String"/>

<field name="REDESPACHO_IE" class="java.lang.String"/>

<field name="MOTORISTA" class="java.lang.String"/>

<field name="PLACA" class="java.lang.String"/>

<field name="UF" class="java.lang.String"/>

<field name="TIPO" class="java.lang.String"/>

<field name="CO_NATUREZA" class="java.lang.String"/>

<field name="ESPECIE" class="java.lang.String"/>

<field name="QUANTIDADE" class="java.lang.Double"/>

<field name="PESO_MEDIDA" class="java.lang.Double"/>

<field name="NOTAS" class="java.lang.String"/>

<field name="VALOR_MERCADORIA" class="java.lang.Double"/>

<field name="OBSERVACAO" class="java.lang.String"/>

<field name="FRETE_PESO" class="java.lang.Double"/>

<field name="FRETE_VALOR" class="java.lang.Double"/>

<field name="FRETE_VALOR_PRESTACAO" class="java.lang.Double"/>

<field name="FRETE_VALOR_CAT" class="java.lang.Double"/>

<field name="FRETE_VALOR_REDESPACHO" class="java.lang.Double"/>

<field name="FRETE_VALOR_PEDAGIO" class="java.lang.Double"/>

<field name="FRETE_VALOR_GRIS" class="java.lang.Double"/>

<field name="FRETE_VALOR_OUTROS" class="java.lang.Double"/>

<field name="FRETE_VALOR_BASE" class="java.lang.Double"/>

<field name="FRETE_ALIQ_ICMS" class="java.lang.Double"/>

<field name="FRETE_VALOR_ICMS" class="java.lang.Double"/>

<background>

<band height="0" isSplitAllowed="true" >

</band>

</background>

<title>

<band height="0" isSplitAllowed="true" >

</band>

</title>

<pageHeader>

<band height="0" isSplitAllowed="true" >

</band>

</pageHeader>

<columnHeader>

<band height="0" isSplitAllowed="true" >

<staticText>

<reportElement

mode="Transparent"

x="650"

y="-17"

width="130"

height="17"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">

<font fontName="Helvetica" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />

</textElement>

<text><![CDATA[CEP]]></text>

</staticText>

</band>

</columnHeader>

<detail>

<band height="380" isSplitAllowed="true" >

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement

mode="Opaque"

x="421"

y="58"

width="58"

height="13"

forecolor="#000000"

backcolor="#FFFF33"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="Tahoma" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{CONHECIMENTO}]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement

mode="Opaque"

x="310"

y="57"

width="58"

height="13"

forecolor="#000000"

backcolor="#FFFF33"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Bottom" lineSpacing="Single">

<font fontName="Tahoma" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.util.Date"><![CDATA[$F{EMISSAO}]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement

mode="Opaque"

x="46"

y="93"

width="223"

height="10"

forecolor="#000000"

backcolor="#FFFF33"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">

<font fontName="Tahoma" pdfFontName="Helvetica" size="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{REMETENTE_ENDERECO}+" - "+$F{REMETENTE_BAIRRO}]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement

mode="Opaque"

x="46"

y="82"

width="223"

height="10"

forecolor="#000000"

backcolor="#FFFF33"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Le

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...