muneer Posted March 6, 2009 Share Posted March 6, 2009 Can i call Storeprocedure in iReport 3.0.0 ?? also can i pass ResultSet to iReport....? Link to comment Share on other sites More sharing options...
yo1832 Posted March 6, 2009 Share Posted March 6, 2009 //Recorset from data base ( select * from anuncios ) return list of object anuncioList 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 More sharing options...
muneer Posted March 6, 2009 Author Share Posted March 6, 2009 would you explain it?i am new in IReport i make a report and call in java, my code is under Code: Post Edited by Muneer Ahmed at 03/06/09 10:29Post Edited by Muneer Ahmed at 03/06/09 10:30 Link to comment Share on other sites More sharing options...
yo1832 Posted March 6, 2009 Share Posted March 6, 2009 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 More sharing options...
muneer Posted March 6, 2009 Author Share Posted March 6, 2009 thanks Link to comment Share on other sites More sharing options...
muneer Posted March 7, 2009 Author Share Posted March 7, 2009 can you give "/busquedaAnunciosImpresionBoletin.jasper"" source OR any other; which help me to understand. Link to comment Share on other sites More sharing options...
yo1832 Posted March 9, 2009 Share Posted March 9, 2009 this is a complete jasper report, create with ireport 3.0Have more parameter and variables than i put you in the sample Link to comment Share on other sites More sharing options...
yo1832 Posted March 9, 2009 Share Posted March 9, 2009 open *.jrxml with ireport, compile and you obtain the jasper. 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