You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nandakishore Nekkanti <na...@evolveware.com> on 2006/03/06 12:39:30 UTC
Jasper Reports
Hi can any body help how to export a report to xcel using Jaspr reports.
I tried using the servlet(XlsServlet) they provided to export as part of
the src code.
But i was with the following error.
javax.servlet.ServletException: No JasperPrint documents found on the HTTP
session.
net.sf.jasperreports.j2ee.servlets.XlsServlet.service(XlsServlet.java:66)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
If any body has idea please reply.Thank u
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Jasper Reports
Posted by Marco Mistroni <mm...@waersystems.com>.
Hello,
This is not a struts question... but jasper's .
Could have been nicer to prefix subject with OT
Anyway, yes I have exported jasperreports with excel, using
Struts
I haven't used the XlsServlet.. instead I have used the proper
JasperExporter for generating an XLS sheet, like in the following
JRXlsExporter exporter = new JRXlsExporter();
exporter.setParameter(
JRXlsExporterParameter.IS_AUTO_DETECT_CELL_TYPE,
Boolean.TRUE);
Remember to set the proper content type for your response..
Pls have a look at jasper samples...
HTH
marco
-----Original Message-----
From: Nandakishore Nekkanti [mailto:nandan@evolveware.com]
Sent: 06 March 2006 11:40
To: user-help@struts.apache.org; user@struts.apache.org
Subject: Jasper Reports
Hi can any body help how to export a report to xcel using Jaspr reports.
I tried using the servlet(XlsServlet) they provided to export as part of
the src code.
But i was with the following error.
javax.servlet.ServletException: No JasperPrint documents found on the HTTP
session.
net.sf.jasperreports.j2ee.servlets.XlsServlet.service(XlsServlet.java:66)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
If any body has idea please reply.Thank u
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org