Hi, Another way to do it is to use the spreadsheet api of Google Docs and send your users there (they can retrieve the web spreadsheet as a file if needed)
See http://code.google.com/apis/spreadsheets/ regards didier On Sep 5, 7:57 pm, Marcelo Liberato <[email protected]> wrote: > You should try Apache POI:http://poi.apache.org/ > > On Sep 5, 7:24 am, Sawan Darekar <[email protected]> > wrote: > > > i am developing cloud application which is hosted on google app engine and > > in this i want to *generate excel file* on click of button through servlet. > > > i have done it on local machine but when i deploy my application on app > > engine it shows error HTTP Error 500 Internal server error > > > i am using *jxl java api* for generating excel file > > > code that i have used is here > > > try > > { > > > //i have used following content type but didn't worked..... > > > //response.setContentType("application/vnd.ms-excel"); > > > //response.setContentType("application/x-ms-excel"); > > > response.setContentType("application/CSV"); > > > WritableWorkbook w = Workbook.createWorkbook(response.getOutputStream()); > > > WritableSheet s = w.createSheet("Demo", 0); > > > Label label = new Label(0, 2, "A label record"); > > > s.addCell(label); > > > w.write(); > > > w.close();} > > > catch (Exception e) > > { > > > response.getOutputStream().println("Exception :"+e);} > > > finally > > { > > > } > > > -- > > Thanks & Regards, > > Raj > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
