Jump to content

Store procedure.? ResultSet


muneer

Recommended Posts

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

//Recorset from data base ( select * from anuncios ) return list of object anuncio

List listaAnunciosP = this.fachada.obtenerAnunciosPorEstadoParaImpresion(anuncioBean, busqueda);
  
   
    reportFile = new File(getServlet().getServletContext().getRealPath("//WEB-INF//classes//reportes  //busquedaAnunciosImpresionBoletin.jasper"));

    parametros.put("anyo", formulario.getAnyo());
  
   
    listaObjetosReportar = listaAnunciosP;    //list object

    JasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile.getPath());
    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parametros, new JRBeanCollectionDataSource(listaObjetosReportar));
 

Link to comment
Share on other sites

the report you can make with ireport that a grapical jasper report designer.

you can find google tutorial of this program.

 

When you have a report create, you can call this with my lines.

i don`t know  who create report in code.

My lines pass a list of object anuncios from the database to report.

 

 

Link to comment
Share on other sites

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...