2004 IR Help Posted September 2, 2006 Share Posted September 2, 2006 By: keiji77 - giuppe print to pdf file from java 2004-10-26 05:25 Hi, I try to export the jasper into pdf file bat my application stop on last line and don' t show nothing please, help me!!! import net.sf.jasperreports.engine.*; import net.sf.jasperreports.view.*; import java.util.HashMap; import java.util.Map; ... JasperManager jM = new JasperManager(); Map hm = new HashMap(); ... JasperReport jR = jM.loadReport(new FileInputStream( "c:\Reports\" + fileName)); JasperPrint jP = jM.fillReport(jR, null, conn); jM.printReportToPdfFile(jP,"BasicReport.pdf"); By: Giulio Toffoli - gt78 RE: print to pdf file from java 2004-10-26 06:15 Use exporter classes instead of call printReportToPdfFile. Giulio 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