Criação do relatório



  • Bem estamos querendo criar um relatório dinamico.

    O que ja tem pronto, criação do .jrxml, para o ireport 4.5.0, e a criação do report.data.

    O que não descobrimos ainda, geração do arquivo com extensão .jasper e fazer com que o webrun chame o mesmo.


  • O webrun não usa arquivos .jasper, ele usa o .jrxml apenas, e compila em tempo de execução. Somente testei na versão 3.1.2.

    Referências: [list]
  • [*][url=http://dicasmaker.blogspot.com/2010/05/utilizando-relatorios-em-jasper.html]Utilizando Relatórios em Jasper[/url][/*]
  • [*][url=http://suporte.softwell.com.br/maker/manual2_7/pt/maker_2/exportar_para_jasper/exportando_relatorios_para_jasper.htm]Exportando Relatórios para JASPER[/url][/*]
  • [/list]


  • Grato pela resposta.

    Mas nao estou conseguindo verificar se meu .jrxml abre na versao 3.1.2 do ireport. Ele nao abre.


  • Faça ele na versão 3.1.2 então, que com certeza vai funcionar.


  • Consegui trababalhar com a versão 3.12. Estamos verificando as diferencas dos códigos gerados.


  • Este é o jrxml que o maker gera quando peço para salvar em .jrxml.

    Com este modelo ele tem que gerar correto ?
    [code]<?xml version="1.0" encoding="ISO-8859-1"?> <!-- Created with MakerReports Version 0.3 --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="teste" scriptletClass="wfr.com.report.ScriptletReportScriplet" orientation="Portrait" leftMargin="18" rightMargin="18" bottomMargin="18" topMargin="18" pageWidth="595" pageHeight="842" columnCount="1" columnWidth="0"><property name="ireport.scriptlethandling" value="2"/><property name="ireport.encoding" value="ISO-8859-1"/><import value="java.util.*"/><import value="net.sf.jasperreports.engine.*"/><import value="net.sf.jasperreports.engine.data.*"/><import value="net.sf.jasperreports.engine.xml.*"/><parameter name="marca" isForPrompting="true" class="java.lang.String"/><queryString>Select cad_marca.mar_descricao As marca, cad_modelo.mod_descricao As modelo, cad_marca.mar_id As idMarca From cad_marca Inner Join cad_modelo On cad_modelo.mar_id = cad_marca.mar_id Where cad_marca.mar_id = $P{marca} /*WHERE_ADD*/ /*ORDER_NEW*/ </queryString><field name="marca" class="java.lang.String"/><field name="modelo" class="java.lang.String"/><field name="idmarca" class="java.lang.Integer"/><variable name="consulta" class="java.lang.String"><variableExpression>"Select cad_marca.mar_descricao As marca, cad_modelo.mod_descricao As modelo, cad_marca.mar_id As idMarca From cad_marca Inner Join cad_modelo On cad_modelo.mar_id = cad_marca.mar_id Where cad_marca.mar_id = $P{marca} /*WHERE_ADD*/ /*ORDER_NEW*/ "</variableExpression></variable><variable name="Entidade" class="java.lang.String"><variableExpression>"SELECT E.ENT_BRASAO, E.ENT_NOME, E.ENT_END, E.ENT_BAIRRO, M.MUN_NOME, U.UF_SIGLA FROM GER_ENTIDADE E LEFT JOIN GER_MUNICIPIO M ON E.MUN_COD = M.MUN_COD LEFT JOIN GER_UF U ON M.UF_COD = U.UF_COD "</variableExpression></variable><group isStartNewPage="false" isStartNewColumn="false" isResetPageNumber="false" isReprintHeaderOnEachPage="false" minHeightToStartNewPage="0" name="idmarca"><groupExpression>$F{idmarca}</groupExpression><groupHeader><band isSplitAllowed="true" height="14"><staticText><reportElement x="0" y="0" width="31" height="14" key="Label5" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Left" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><text>Marca</text></staticText><staticText><reportElement x="167" y="0" width="37" height="14" key="Label6" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Left" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><text>Modelo</text></staticText><line><reportElement x="0" y="12" width="558" height="1" key="Line4" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/><graphicElement stretchType="NoStretch"/></line></band></groupHeader><groupFooter><band isSplitAllowed="true" height="0"/></groupFooter></group><title><band isSplitAllowed="true" height="0"/></title><pageHeader><band isSplitAllowed="true" height="27"><staticText><reportElement x="251" y="2" width="63" height="14" key="Label1" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Center" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><text>Funcionário</text></staticText><line><reportElement x="0" y="0" width="558" height="1" key="Line1" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/><graphicElement stretchType="NoStretch"/></line><staticText><reportElement x="0" y="13" width="85" height="14" key="Label2" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Left" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><text>Nome da empresa</text></staticText><line><reportElement x="0" y="25" width="558" height="1" key="Line2" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/><graphicElement stretchType="NoStretch"/></line></band></pageHeader><columnHeader><band isSplitAllowed="true" height="0"/></columnHeader><detail><band isSplitAllowed="true" height="14"><textField isStretchWithOverflow="true" isBlankWhenNull="true"><reportElement x="0" y="0" width="28" height="14" key="DBText1" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Left" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><textFieldExpression class="java.lang.String">$F{marca}</textFieldExpression></textField><textField isStretchWithOverflow="true" isBlankWhenNull="true"><reportElement x="167" y="0" width="28" height="14" key="DBText2" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Left" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><textFieldExpression class="java.lang.String">$F{marca}</textFieldExpression></textField><line><reportElement x="0" y="12" width="558" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/><graphicElement stretchType="NoStretch"/></line></band></detail><columnFooter><band isSplitAllowed="true" height="0"/></columnFooter><pageFooter><band isSplitAllowed="true" height="17"><line><reportElement x="0" y="0" width="558" height="1" key="Line3" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/><graphicElement stretchType="NoStretch"/></line><staticText><reportElement x="0" y="3" width="63" height="14" key="Label3" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Left" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><text>Impresso em </text></staticText><textField pattern="" evaluationTime="Report"><reportElement x="64" y="3" width="94" height="14" key="SystemVariable1" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Left" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><textFieldExpression class="java.util.Date">new java.util.Date()</textFieldExpression></textField><textField pattern="" evaluationTime="Now"><reportElement x="249" y="3" width="85" height="14" key="SystemVariable2" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Left" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><textFieldExpression>"Página " + $V{PAGE_NUMBER} + " de " + $V{PAGE_COUNT}</textFieldExpression></textField><staticText><reportElement x="458" y="3" width="100" height="14" key="Label4" mode="Transparent" forecolor="#000000"/><box/><textElement textAlignment="Right" verticalAlignment="Middle"><font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/></textElement><text>Fantastsoft Sistemas</text></staticText></band></pageFooter><summary><band isSplitAllowed="true" height="0"/></summary></jasperReport>[/code]


  • Gerei este .jrxml, mas não funcionou.

    no Ireport abre normalmente...
    [code]<?xml version="1.0" encoding="ISO-8859-1"?> <!-- Created with MakerReports Version 0.3 --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="Bancos,agencias,ContasCorrentes" scriptletClass="wfr.com.report.ScriptletReportScriplet" orientation="Landscape" leftMargin="0" rightMargin="0" bottomMargin="0" topMargin="0" pageWidth="595" pageHeight="842" columnCount="1" columnWidth="0"> <property name="ireport.scriptlethandling" value="2"/> <property name="ireport.encoding" value="ISO-8859-1"/> <import value="java.util.*"/> <import value="net.sf.jasperreports.engine.*"/> <import value="net.sf.jasperreports.engine.data.*"/> <import value="net.sf.jasperreports.engine.xml.*"/> <parameter name="ban_id" isForPrompting="false" class="java.lang.Integer"/> <queryString language="SQL"><![CDATA[SELECT cad_conta_corrente.ccc_digito AS campo1,cad_funcionario.fun_matricula AS campo2,cad_funcionario.fun_data_ativacao AS campo3,cad_banco.ban_codigo AS campo4,cad_agencia.age_digito AS campo5,cad_agencia.age_gerente AS campo6,cad_agencia.age_telefone AS campo7,cad_agencia.age_end_numero AS campo8,cad_conta_corrente.ccc_numero AS campo9,cad_banco.ban_nome AS campo10 FROM cad_agencia LEFT JOIN cad_conta_corrente ON cad_conta_corrente.age_id = cad_agencia.age_id WHERE (cad_banco.ban_id = $P{ban_id}) ORDER BY cad_agencia.age_end_numero ASC, cad_conta_corrente.ccc_numero ASC, cad_banco.ban_codigo ASC, cad_funcionario.fun_matricula ASC]]></queryString> <field name="campo1" class="java.lang.String"/> <field name="campo2" class="java.lang.String"/> <field name="campo3" class="java.util.Date"/> <field name="campo4" class="java.lang.String"/> <field name="campo5" class="java.lang.String"/> <field name="campo6" class="java.lang.String"/> <field name="campo7" class="java.lang.String"/> <field name="campo8" class="java.lang.Integer"/> <field name="campo9" class="java.lang.String"/> <field name="campo10" class="java.lang.String"/> <variable name="consulta" class="java.lang.String"> <variableExpression>"SELECT cad_conta_corrente.ccc_digito AS campo1,cad_funcionario.fun_matricula AS campo2,cad_funcionario.fun_data_ativacao AS campo3,cad_banco.ban_codigo AS campo4,cad_agencia.age_digito AS campo5,cad_agencia.age_gerente AS campo6,cad_agencia.age_telefone AS campo7,cad_agencia.age_end_numero AS campo8,cad_conta_corrente.ccc_numero AS campo9,cad_banco.ban_nome AS campo10 FROM cad_agencia LEFT JOIN cad_conta_corrente ON cad_conta_corrente.age_id = cad_agencia.age_id WHERE (cad_banco.ban_id = $P{ban_id}) ORDER BY cad_agencia.age_end_numero ASC, cad_conta_corrente.ccc_numero ASC, cad_banco.ban_codigo ASC, cad_funcionario.fun_matricula ASC"</variableExpression> </variable> <group isStartNewPage="false" isStartNewColumn="false" isResetPageNumber="false" isReprintHeaderOnEachPage="false" minHeightToStartNewPage="0" name="ban_id"> <groupExpression>$F{ban_id}</groupExpression> <groupHeader> <band isSplitAllowed="true" height="14"><staticText> <reportElement x="0" y="0" width="50" height="14" key="Label0" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Digito</text> </staticText><staticText> <reportElement x="50" y="0" width="100" height="14" key="Label50" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Banco</text> </staticText><staticText> <reportElement x="150" y="0" width="50" height="14" key="Label150" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Código</text> </staticText><staticText> <reportElement x="200" y="0" width="100" height="14" key="Label200" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Gerente</text> </staticText><staticText> <reportElement x="300" y="0" width="50" height="14" key="Label300" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Telefone</text> </staticText><staticText> <reportElement x="350" y="0" width="50" height="14" key="Label350" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Número</text> </staticText><staticText> <reportElement x="400" y="0" width="50" height="14" key="Label400" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Data ativação</text> </staticText><staticText> <reportElement x="450" y="0" width="50" height="14" key="Label450" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Número</text> </staticText><staticText> <reportElement x="500" y="0" width="50" height="14" key="Label500" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Digito</text> </staticText><staticText> <reportElement x="550" y="0" width="50" height="14" key="Label550" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Matrícula</text> </staticText></band> </groupHeader> <groupFooter> </groupFooter> </group> <title> </title> <pageHeader> <band isSplitAllowed="true" height="27"> <staticText> <reportElement x="0" y="2" width="595" height="14" key="Label1" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Bancos, agências, Contas Correntes</text> </staticText> <line> <reportElement x="0" y="0" width="595" height="1" key="Line1" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <staticText> <reportElement x="0" y="13" width="595" height="14" key="Label2" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Fantastsoft Sistemas Ltda</text> </staticText> <line> <reportElement x="0" y="25" width="595" height="1" key="Line2" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> </band> </pageHeader><columnHeader> </columnHeader> <detail> <band isSplitAllowed="true" height="14"><textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="0" y="0" width="100" height="14" key="DBText1" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.lang.String">$F{campo1}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="100" y="0" width="50" height="14" key="DBText2" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.lang.String">$F{campo2}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="150" y="0" width="50" height="14" key="DBText3" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.lang.String">$F{campo3}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="200" y="0" width="100" height="14" key="DBText4" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.lang.String">$F{campo4}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="300" y="0" width="50" height="14" key="DBText5" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.lang.Integer">$F{campo5}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="350" y="0" width="50" height="14" key="DBText6" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.lang.String">$F{campo6}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="400" y="0" width="50" height="14" key="DBText7" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.lang.String">$F{campo7}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="450" y="0" width="50" height="14" key="DBText8" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.lang.String">$F{campo8}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="500" y="0" width="50" height="14" key="DBText9" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.lang.String">$F{campo9}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement x="550" y="0" width="50" height="14" key="DBText10" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.util.Date">$F{campo10}</textFieldExpression> </textField><line> <reportElement x="0" y="12" width="595" height="1" key="Line5" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> </band> </detail> <columnFooter> </columnFooter> <pageFooter> <band isSplitAllowed="true" height="17"> <line> <reportElement x="0" y="0" width="595" height="1" key="Line3" mode="Transparent" forecolor="#000000" backcolor="#FFFFFF"/> <graphicElement stretchType="NoStretch"/> </line> <staticText> <reportElement x="0" y="3" width="63" height="14" key="Label3" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Impresso em </text> </staticText> <textField pattern="" evaluationTime="Report"> <reportElement x="64" y="3" width="94" height="14" key="SystemVariable1" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <textFieldExpression class="java.util.Date">new java.util.Date()</textFieldExpression> </textField> <textField pattern="" evaluationTime="Now"> <reportElement x="297" y="3" width="100" height="14" key="SystemVariable2" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement><textFieldExpression>"Página " + $V{PAGE_NUMBER} + " de " + $V{PAGE_COUNT}</textFieldExpression> </textField> <staticText> <reportElement x="485" y="3" width="110" height="14" key="Label4" mode="Transparent" forecolor="#000000"/> <box/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/> </textElement> <text>Fantastsoft Sistemas</text> </staticText> </band> </pageFooter><summary> <band isSplitAllowed="true" height="0"/> </summary> </jasperReport>[/code]


  • Conseguir fazer o relatório automatico, via maker.

    :D :D :D :D :D :D :D

    Bom demais

  • Log in to reply