2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: binacse - jatno whats the problem of this code? 2006-05-10 03:44 <html> <body> Hi, I have Wriiten following code.But it is not working. package jasperreportsintro; import java.util.HashMap; import net.sf.jasperreports.engine.*; import net.sf.jasperreports.engine.design.*; public class JasperReportsIntro { public static void main(String[] args) { JasperReport jasperReport; JasperPrint jasperPrint; try { jasperReport = JasperCompileManager.compileReport("jasperreports_demo.jrxml"); jasperPrint = JasperFillManager.fillReport( jasperReport, new HashMap(), new JREmptyDataSource() ); JasperExportManager.exportReportToPdfFile( jasperPrint, "simple_report.pdf"); } catch ( JRException e) { e.printStackTrace(); } } } But it shows following error? can u give me the solution? Whats the problem of my code? In my code i wanted to generate an PDf file? Please help me. With regards Bina </body> </html> 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