ragampo Posted November 8, 2013 Share Posted November 8, 2013 Hello, I need some guide please!I downloaded the last version of iReport ...Then I downloaded what i think the libraries are : Then in my Java code I'm doing something like this ... public byte[] getInformeDiario(){ DsMgr myDb = new DsMgr(); ByteArrayInputStream is=null; byte[] os = null; Map parameters = new HashMap(); Connection con = myDb.getConnection(); if (con != null){ is = (ByteArrayInputStream) getClass().getResourceAsStream("/reports/report1.jasper"); //parameters.put("date",myTime); System.out.println("Hola"); try { os = JasperRunManager.runReportToPdf(is,parameters,con); } catch (JRException e) { // TODO Auto-generated catch block e.printStackTrace(); System.out.println(e.getMessage()); }finally{ try { con.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return os;}[/code]But I get this : "net.sf.jasperreports.engine.JRRuntimeException : Unknown hyperlink target 0" I think the problem are the libraries but I cant identify which one.... Anybody has any ideas? please? 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