struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Mistroni" <mmistr...@waersystems.com>
Subject RE: Jasper Reports
Date Mon, 06 Mar 2006 12:23:13 GMT
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


Mime
View raw message