Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Java  - MsExcel  -  java 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 » Servlets
Bookmark "Java  - MsExcel  -  java" Watch "Java  - MsExcel  -  java" New topic
Author

Java - MsExcel - java

Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357
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


Eat JAVA, Drink JAVA, Sleep Java
koray guclu
Ranch Hand

Joined: Feb 23, 2001
Posts: 59
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
-----------------------------------------------------


-----------------------------------------------------<BR> Koray GUCLU ~ the sky has no limit ~<BR> (B.s. Computer Engineer)<BR> Frankfurt am Main, Germany<BR> web : <A HREF="http://www.geocities.com/korayguclu/<BR rel="nofollow">" TARGET=_blank>http://www.geocities.com/korayguclu/<BR></A> mail: korayguclu@yahoo.com<BR>-----------------------------------------------------
Dave Soto
Ranch Hand

Joined: Sep 15, 2001
Posts: 55
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.
 
 
subject: Java - MsExcel - java
 
Similar Threads
how can convert excel to pdf .
How to create New Excel File
Extracting data from Excel sheet through servlets in linux
Java MySQL MS Excel
Excel File opening