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

How to run reports in other formats than PDF ?


bob007

Recommended Posts

 

Hi,

 

I'm making my reports programmatically with JasperDesign.

I use JasperCompileManager to compile my reports then I use JasperRunManager.runReportToPdf  to export PDF report. (always by using streams)

Unfortunately, JasperRunManager seem only exporting in PDF and HTML.

 

How can I export in other formats ?

 

Thank you,

Philippe

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

there are seperate exporter API for each type in the jasperreports like

 net.sf.jasperreports.engine.JasperPrint
 net.sf.jasperreports.engine.export.JRHtmlExporter
 net.sf.jasperreports.engine.export.JRPdfExporter
 net.sf.jasperreports.engine.export.JRXmlExporter
 net.sf.jasperreports.engine.export.JRXlsExporter
 net.sf.jasperreports.engine.export.JRCsvExporter

you can use them to export it to different formats.

 

Link to comment
Share on other sites

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