my thoughts .....!

Generate MS Excel File through Java

No comments

How do i generate excel file using java ? How to export data in excel format ? Dynamic - on the fly excel file creation ?

Well, I also had the same questions and the answers found are below....

We can use JExcel API , This is an easy way for stand alone application to create dynamic excel file....

Secondly, we use use any web server scripts to create excel file, i took jsp/servlets (since i was working on that)... below is the example code....

response.setHeader("Content-disposition","inline; filename=FileName.xls");

out.write("<tr><td STYLE=\"vnd.ms-excel.numberformat:dd-mmm-yyyy\">12/28/2005</td></tr>");


For other mime types check http://www.w3schools.com/media/media_mimeref.asp


Written by muthuveerappan

Wednesday 28 December 2005 at 04:40 am

Posted in Technology

No comments

You can comment / reply using Facebook form or Standalone form (no login required)

Facebook Form

Leave a Reply (Standalone form)

(optional field)
(optional field)
To prevent automated commentspam we require you to answer this silly question

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.