• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Java - MsExcel - java

 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
All
I have data as in MS-Excel Format.
Now i want to read that Excel Sheets using Java and then stored it into Database.
Can anybody tell me how can i go for this.
Thanks in advance
Sanjay
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make a ODBC connection to Excel file and then fetch the values from file by using java and then insert them to your database. Or make XML file from your excel by using MS stuff and then import this XML to your application.
Check perstore application at java.sun.com web site.
you can get code snippets from there.
------------------
-----------------------------------------------------
Koray GUCLU ~ the sky has no limit ~
(B.s. Computer Engineer)
Frankfurt am Main, Germany
web : <A HREF="http://www.geocities.com/korayguclu/<BR rel="nofollow">" TARGET=_blank>http://www.geocities.com/korayguclu/
mail: korayguclu@yahoo.com
-----------------------------------------------------
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another easy way to do this (and one you'll find TONS of info on the web for) is to first import your excel spreadsheet into an Access database. At that point, you just connect to the Access database. Like I said, if you need help with that, there's more than a little support on the web for that.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!