2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: frankrtg - francisco_rdz Can´t pass params to report 2006-03-02 11:54Hi all. I'm trying to pass one single param to my rpeort and it doesn´t work. I can get the PDF file but the param is null. PLease help me. - I'm using jasperreports 1.2 - downloaded jasperasistant to create the jrxml file my code: JasperReport jasperReport; JasperPrint jasperPrint; Map parameters = new HashMap(); String out = "xls"; parameters.put("tituloReporte","Titulo del Reporte"); try { jasperReport = JasperCompileManager.compileReport("reports/Reporte.jrxml"); jasperPrint = JasperFillManager.fillReport(jasperReport,parameters, new JREmptyDataSource()); By: Code_Slave - code_slave RE: Can´t pass params to report 2006-03-05 13:55when you use the param in your report, it HAS TO: 1.be in the right variable type ( in the report) 2. be in EXACTLY the same case and name. ( see your capital 'R') 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