If you are talking about use Servlet to generate Excel file on the Web.
Here is another way without use a .CSV file.

1. set your output content type as something like this:
response.setHeader("Content-Disposition","attachment");
response.setContentType("application/vnd.ms-excel");

2. use '\t' and '\n' as something like this:
m_ObjectData(iRow,iCol,i,allObjs);
sb.append("\r\n"); 

3. output to screen as something like this:
out.println(sb.toString());

Hope this will help.

Kevin

-----Original Message-----
From: G S Sundar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 10:21 PM
To: [EMAIL PROTECTED]
Subject: Re: Java to excel


Easy way to do this is write the info with TAB delimiter. If you are
reading from XL file read line by line tokenize with "\t".
If there is any other formal way to do this pls update this list.

- G S Sundaram

Nandish Angadi wrote:

> Hi All,
>          I have created a clean look of excel file with data in java
frame, but how will i transfer the contents to an excel file, so that i
can open excel to see it without Java. Help needed as earliest as
possible, any information regarding this is appricated. Thanks to all in
advance.
>
> Regards
> NASA
> Phone :8391663. Ext:112
> "Standards are easier to define than to FOLLOW......"
>
>
________________________________________________________________________
___
> 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

________________________________________________________________________
___
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

___________________________________________________________________________
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

Reply via email to