Quantcast
Channel: Programação - GUJ
Viewing all articles
Browse latest Browse all 33093

HashMAP alguem me ajuda ?

$
0
0

@Paulosilv_123 escreveu:

Olá boa tarde o meu HashMAp esta como a baixo, mais tenho duvida se esta correto !

public void imprimeRelatorio(){

            ConexaoFirebird conn = new ConexaoFirebird();
      JasperReport jr = null;
    String relat = "./src/Relatorios/RelatoriosDeVendaPeriodo.jasper";
    try {
HashMap parametros = new HashMap();
    parametros.put("dataDe",(jTDe.getText()));
parametros.put("dataAte",(jTAte.getText()));
    parametros.put("status",(jCAtiCan.getSelectedItem()));
jr = (JasperReport) JRLoader.loadObjectFromFile(relat);
JasperPrint jp = JasperFillManager.fillReport(jr, parametros, conn.getConexao());
JasperViewer jv = new JasperViewer(jp);
jv.setVisible(true);
jv.setTitle("Impressão Venda");
    JasperPrintManager.printPage(jp, 0, false); //Comando para fazer a Impressão Direta na Impressora Padrão Win 
    }
    catch (JRException ex) {
        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    }
    }

Mensagens: 5

Participantes: 2

Ler tópico completo


Viewing all articles
Browse latest Browse all 33093


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>