Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Plutarco Gonzalez

Greenhorn
+ Follow
since Jan 13, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Plutarco Gonzalez


I think, you may add frame to gwt application and send your file to app viewer,
like zoho or google docs and load this in your frame.

look this:

http://viewer.zoho.com/home.do

or

http://docs.google.com/viewer
11 years ago
GWT

Harsha Bandaru wrote:Hey
I was not able to unserstand where to set the content type in GWT. Is there any sample code explaining me how to do it? I am sorry but i am in bad need of it.
Thanks for your responses.



In my servlet I use this to create pdf report and send to user.

ServletOutputStream out = response.getOutputStream();
byte[] reporte = JasperExportManager.exportReportToPdf(jasperPrint);
response.setContentType("application/pdf");
response.setContentLength(reporte.length);
response.addHeader("content-disposition", "attachment; filename=\""+ reportFileName + "\"");
out.write(reporte, 0, reporte.length);
out.flush();

Harsha, how can I generate the excel sheet ?
11 years ago
GWT