itzbobi Posted October 9, 2009 Share Posted October 9, 2009 hi guys, i am new to jasper reports and ireport as well. i know how to create a parameterised report. But, how to send dynamic parameters at runtime to java program which in turn calls the jrxml file to generate report. Link to comment Share on other sites More sharing options...
mdahlman Posted October 9, 2009 Share Posted October 9, 2009 itzbobi,You can make a web services call to get the parameter choices. The details are included in the web services documentation.Regards,Matt Link to comment Share on other sites More sharing options...
dysonjm Posted February 18, 2011 Share Posted February 18, 2011 I am new to jasper report ..And I developed new jasper report using ireport.. in my report thre is one parameter. From ireport it taking the parameters and working fine. But when I calling it using java code it wont taking the parameters instead it produsing complete output without parameter..even it wont taking the default parameters which i hav asssinged in jasper report.Code:HashMap jasperParameter = new HashMap(); Map parameters = new HashMap(); parameters.put("Pname","P"); JasperReport jasperReport = null; jasperReport=JasperCompileManager.compileReport(reportFile); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters,new JRResultSetDataSource(result)); JasperExportManager.exportReportToPdfFile(jasperPrint,"E:\report3.pdf"); JRXMl:Code:HashMap jasperParameter = new HashMap(); Map parameters = new HashMap(); parameters.put("Pname","P"); JasperReport jasperReport = null; jasperReport=JasperCompileManager.compileReport(reportFile); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters,new JRResultSetDataSource(result)); JasperExportManager.exportReportToPdfFile(jasperPrint,"E:\report3.pdf"); 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