Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

hi, i have problem in reading data

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am doing in java
 
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!