ktrinad Posted August 30, 2006 Share Posted August 30, 2006 By: Miko Yung - hly Help with parameters!!! 2003-04-30 13:49 I'm having a question about the parameters. In the webapp which comes with IReport, it shows how to add parameter. Map parameters = new HashMap(); parameters.put("ReportTitle", "Just Report Name"); parameters.put("myParaeter", "This is Value"); But i'm trying to call the function, byte[] bytes = null; try { // Connection conn = new Connection( bytes = JasperRunManager.runReportToPdf( reportFile.getPath(), parameters, new WebappDataSource() ); } The third parameter in the runReportToPdf requires either java.sql.Connection or JRDataSource, do I need to call the connection again because I had made a connection in the XML file. thanx a lot 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