File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java  - MsExcel  -  java" Watch "Java  - MsExcel  -  java" New topic

Java - MsExcel - java

Sanjay pts
Ranch Hand

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

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 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="<BR rel="nofollow">" TARGET=_blank>

-----------------------------------------------------<BR> Koray GUCLU ~ the sky has no limit ~<BR> (B.s. Computer Engineer)<BR> Frankfurt am Main, Germany<BR> web : <A HREF="<BR rel="nofollow">" TARGET=_blank><BR></A> mail:<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.
I agree. Here's the link:
subject: Java - MsExcel - java
It's not a secret anymore!