Miletone

Rp0 / Rp1.000.000

Sunday, September 29, 2019

[JAVA] Cara print dari JTextField pada Jasper Report

Method :
Connection connect = Database.getConnect();
        try{
                HashMap params = new HashMap();
                params.put("kode", jTextField1.getText());
                JasperReport JASP_REP = JasperCompileManager.compileReport("src/Laporan/LaporanKesehatan.jrxml");
                JasperPrint JASP_PRINT = JasperFillManager.fillReport(JASP_REP, params, connect);
                JasperViewer.viewReport(JASP_PRINT);
        } catch (Exception ev){
       
        }

No comments: