Jump to content
We've recently updated our Privacy Statement, available here ×

JasperExportManager...problem


Recommended Posts

By: Shahzad Badar - xhahzad

JasperExportManager...problem

2003-05-28 04:56

I am new to jasper reports.I am using jasperreports 0.4.6 version.

I am using JasperExportManager.exportHtmlFile(jp,"C:\jasper.html");, the code runs safely but no file is generated same case is for JasperExportManager.exportReportToPdfFile(jp,"C:\jasper.pdf");

 

please help me how to export files to html,pdf.

with some sample code.

 

 

2- I saw in jasper reports hjome page that it also supports excel sheet format but i could not find any class/method to export to excel file..please tell me how to export it to excel sheets.

 

thanks in advace.please reply ASAP

 

 

 

 

By: Teodor Danciu - teodord

RE: JasperExportManager...problem

2003-05-28 05:06

 

Hi,

 

Have you checked the samples found in the

/demo/samples directory of the distributed package?

 

There you can also see how to us the JRXlsExporter

class ot export to XLS format.

 

It is unusual for the engine to run smoothly without

generating any file when exporting.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Shahzad Badar - xhahzad

RE: JasperExportManager...problem

2003-05-28 07:44

Dear thanks for replying..

i have solved the problem,

i was first printing pdf file and then i was exporting.

JasperManager.printReportToPdfFile(jasperPrint,"c:/jasper.pdf");

JasperExportManager.exportReportToHtmlFile(jasperPrint,"C:\jasper.html");

 

but when i commented out first statement then it exported to html file fine.

 

..i downloded jasper reporting api's jar file from

http://sourceforge.net/project/showfiles.php?group_id=36382&release_id=152679

 

this jar file does not have any /demo/samples folders.dear plz could u tell me where i could get right distribution.

 

 

 

 

 

By: Teodor Danciu - teodord

RE: JasperExportManager...problem

2003-05-28 07:57

 

Hi,

 

It is the jasperreports-0.4.6-project.zip file that you need.

 

Thank you,

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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