Jump to content
We've recently updated our Privacy Statement, available here ×

Generate report in Jaspersoft Studio 6 and Netbeans IDE 8


marcosarantesj

Recommended Posts

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

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...