Jump to content
JasperReports Library 7.0 is now available ×

How to use the JasperReport to export csv


2005 IR Help

Recommended Posts

By: Jessica Jia - jjia

How to use the JasperReport to export csv

2002-12-09 10:22

Hello,

I tried to export the PDF and CSV at the same time:

After the compile, I can use: JasperExportManager.exportReportToPdfFile and JasperExportManager.exportReportToHtmlFile

to get the PDF and HTML files. I can't find:

JasperExportManager.exportReportToCsvFile

So I tried to use the JRCsvExporter.exportReport() to get the CSV file, but don't know which parameter to set up and what value I should set the INPUT_FILE. Thank you for help in advance.

Best Regards,

Jessica

 

 

 

 

By: Teodor Danciu - teodord

RE: How to use the JasperReport to export csv

2002-12-18 00:10

 

Hi,

 

I agree that the exporter parameters are not yet

well explained.

You have to supply as INPUT_FILE the .jrprint file

produced by the report filling process.

Or you can directly supply a JasperPrint object

using the JASPER_PRINT parameter.

 

The result of the export process is specified using

the OUTPUT_FILE or OUTPUT_STREAM parameters.

 

The best way to understand exporters is to look

inside their exportReport() method.

This is an open source project.

:)

 

I hope this helps.

Teodor

 

 

 

 

 

By: Druzya - druzya

RE: How to use the JasperReport to export csv

2004-07-14 03:10

hi teodor,

 

sorry but even if i supply a JasperPrint Object to JASPER_PRINT value i get this Exception

 

dori.jasper.engine.JRException: No input source supplied to the exporter.

at dori.jasper.engine.JRAbstractExporter.setInput(JRAbstractExporter.java:182)

at dori.jasper.engine.export.JRCsvExporter.exportReport(JRCsvExporter.java:147)

at CMA.reports.service(reports.java:174)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)

at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)

at com.caucho.server.http.Invocation.service(Invocation.java:315)

at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)

at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:164)

at com.caucho.server.TcpConnection.run(TcpConnection.java:139)

at java.lang.Thread.run(Unknown Source)

 

any help?

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