Before I report generated using ireport. Now use the Jaspersoft Studio 6 and can not generate reports in the same way as before. How do now? I would parameterized reports, filters. What libraries that add in the project too? I need a complete example. I have studied all the documentation and do not think the full sample using the new report generator.
try { // Connection con = new ConexaoMySQL().getConnection(); DB banco = new DB(); banco.connect();//// HashMap parametros = new HashMap(); JasperPrint jp = JasperFillManager.fillReport("D:/ProjetosNetbeans/ControleProjetosMDF/relatorios/relatorio_pastas_topo.jasper", parametros, banco.conn); JasperViewer jrv = new JasperViewer(jp, false);// //Maximiza o relatório jrv.setExtendedState(MAXIMIZED_BOTH); jrv.setVisible(true); jrv.setFitPageZoomRatio(); banco.disconnect();// } catch (Exception e) { JOptionPane.showMessageDialog(null, e.getMessage()); JOptionPane.showMessageDialog(null, e.getCause()); }