File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes hi, i have problem in reading data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "hi, i have problem in reading data" Watch "hi, i have problem in reading data" New topic
Author

hi, i have problem in reading data

narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
hi, i have one .csv file. i have to convert the csv file in .xls file, but should be in different cells. while iam reading and writing data to new file. It was come in to the single cell. how to put data into cells in .xls format.
cheers
nr konjeti


"Unwise to sweat petty stuff, wise to pet sweaty stuff."
Amy Phillips
Ranch Hand

Joined: Apr 02, 2003
Posts: 280
Are you doing this through java? If you want to do it directly through excel you simply highlight the first column (A) and then select Data then Test to Columns, A window opens up and you select delimited data type and click next.
On the next screen indicate which divider you are using in your CSV. file and click finish. The data should be seperated into fields and you can save as an xsl file.
If you want to do this through java you will have to find a way of doing the above yourself
narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
i am doing in java
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
Correct me if I'm wrong, you can simply rename the file into data.xsl and M$ should picks up by extension and open up in Excell.
Also, you can use JDBC to do stuff like this.
Or use use Jakarta POI API, check out this tutorial by Oreilly:
POI
 
Don't get me started about those stupid light bulbs.
 
subject: hi, i have problem in reading data
 
Similar Threads
Upload Excel on desktop to JAVA
using JFileChooser
Algorithem to remove duplicates from multiple xls sheets.
lading data from file into database
Downloading the jsp as .csv file.