Jump to content
Changes to the Jaspersoft community edition download ×

print to pdf file from java


2004 IR Help

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...