Jump to content
Changes to the Jaspersoft community edition download ×

produce pdf file with java code


2004 IR Help

Recommended Posts

By: keiji77 - giuppe

produce pdf file with java code

2004-10-28 00:48

Hi,

i have a problem with my java program producing a pdf file whith jasperreport...

the jar library is 'jasperreports-0.6.1.jar'.

 

the code is:

////////////////////////////////////////////////////////////// the connection is active and works correctly

//// also the Map and fileReportName.jasper Path

are good

//////////////////////////////////////////////////////////

 

JasperPrint jP = JasperFillManager.fillReport(fileReportName.jasper,Map, Connection);

 

byte [] jpbs = net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(jP);

 

on the second line the V.M. doesn't work correctly because doesn't produce any exception and any output and also doesn't excute other istructions.....

so i have to stop manually the program..........

 

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: produce pdf file with java code

2004-10-28 03:49

The report is printed in iReport ? Can be a loop in the report filling? JVM is working during wait ?

 

Giulio

 

 

 

 

 

 

By: keiji77 - giuppe

RE: produce pdf file with java code

2004-10-28 06:04

-i made the file.jasper with iReport 0.4.0

- during the report filling i have no loop because when i use report visualizer in my java code everithing goes ok..

-JVM doesn't work during wait......

- i have problems only when JVM exceute this code:

byte [] jpbs = net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(jP);

//////////////////////////////////////////

please help me

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...