Hi,
If your clients are using Excel97 it is just one line of code in your servlet
of jsp file:
response.setContentType("application/vnd.ms-excel");
This line will fool your browser so it starts excel as helper application.
Excell is smart enough to recognise the html code and will translate it.
regards,
janco
Venkat Nimishakavi wrote:
> Folks,
>
> There is a requirement in our project where I need to generate Excel
> Spreadsheets on the fly on Unix (Solaris).
> Currently I am generating ASCII flat file, FTPing it to Windows and
> importing it in Excel.
>
> To by-pass this cumbersome process I would like to generate .xls file (on
> the fly), store it on server (Unix) and give a URL for viewing/downloading
> it from browser.
>
> So, I would like to know is it possible to generate .xls (Excel files) from
> Servlets. If so, any pointers to that info is appreciated.
>
> Thanks
> Venkat
------------------------------------------------------------
COAS, Your partner in computer aided services
Nijverheidsweg 34 Tel: +31 (0) 187 49 3222
Postbus 44 Fax: +31 (0) 187 49 2912
3250 AA Stellendam Email: [EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html