dennisk1718 Posted August 15, 2011 Share Posted August 15, 2011 Hello,I am just trying to convert a .jasper to a .pdf file.I get a Null Pointer Exception form the following Non-Parameter code. Is this a Jasper error?What am I not seeing?????????Thank youCode:String fileName = "<absolute path>.jasper";String outFileName = "<absolute path>.pdf"; @SuppressWarnings("rawtypes")HashMap hm = new HashMap(); try{ JasperPrint print = JasperFillManager.fillReport( fileName,hm, new JREmptyDataSource() ); JasperExportManager.exportReportToPdf(print); System.out.println("Created File: " + outFileName);} Link to comment Share on other sites More sharing options...
lknueve Posted August 15, 2011 Share Posted August 15, 2011 This would probably be better asked in the JasperReports forum -> http://jasperforge.org/plugins/espforum/browse.php?group_id=102&forumid=103 iReports is for the GUI... 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