marcosarantesj Posted February 6, 2015 Share Posted February 6, 2015 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()); }[/code] Link to comment Share on other sites More sharing options...
destinohawk Posted March 28, 2015 Share Posted March 28, 2015 Hello,Did you find the solution?I have the same problem.Kind regards, Julian. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now