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:[EMAIL PROTECTED] Sent: 06 March 2006 11:40 To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]