Hi Friends, I want to read data from Excel sheet and save into database.how can i do that? anyone can please let me know how to do that? if any one have code means please send me to saranindia@hotmail.com.
Thanks lot. Regards saran
Ta Ri Ki Sun
Ranch Hand
Joined: Mar 26, 2002
Posts: 442
posted
0
theres a few API's available to do that, you can try Jakarta's POI, which i haven't tried yet but i have used JExcelAPI, you'll find a link to it from POI's alternatives page but that link never works, try google search for it, it definately moved, sorry i cant find the right link anywhere in the jar i have, the docs dont say, and normally looking at package in source helps but not this time, if you want i'll mail the jar to you, drop a pvt msg else i'll try drop by here again later today Jakarta POI Alternatives [ October 02, 2002: Message edited by: Taariq Levack ]
Aleksey Matiychenko
Ranch Hand
Joined: Apr 03, 2001
Posts: 178
posted
0
try formula1. (former tidestone,now actuate)
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
Reading Excel is just like accessing a database. Do a search on Excel in the JDBC forum and you will get LOTS of info.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Hi Friends! I thing this code is usefull for you. I try the jax and it seems to easy to use. I created an excel file with a coloumn header, a row header, a row summary and a coloumn summary line. So ... For example: test.xls contains that above: B1 C1 D1 E1 SC A2 1 1 1 1 A3 1 1 1 1 A3 1 1 1 1 A4 1 1 1 1 SR My program summarizes the values. The output will be: Rows: 6 Cols: 6 Result: 16 ------------------------------------- import java.io.*; import java.util.Date; import jxl.*; public class ImportXLS { public static void main(String args[]) { Workbook workbook; File file; Cell cel; String str = ""; long lngSumm;