|
How to read Excel in java
|
Email
|
| Submitted on: |
5/15/2001 3:54:37 PM |
| By: |
Manjunath P Reddy
|
| Level: |
Intermediate |
| User Rating: |
By 40 Users |
| Compatibility: |
Java (JDK 1.2) |
| Views: |
231777 |
|
|
|
|
|
This article shows a simple ways of accessing spread sheets (such as microsoft excel) in java
|
| |
Terms of Agreement:
By using this article, you agree to the following terms...
- You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
- You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
- You may link to this article from another website, but ONLY if it is not wrapped in a frame.
- You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
|
This sample code was an outcome of a friend's requirement for reading an excel file dynamically. He had an EJB layer for
a flight management system for read/writes to database. It so happened that the data also started coming from various
departments in a spread sheet format. So either he had to import the data to his oracle database manually or re-design
his EJB's for accomadating this new data input.
So what i designed for him was a simple facade pattern classes run by a daemon process which makes use of the existing
enterprise java beans which enabled him to treat the spreadsheet data as no different. The scope of the design is beyond
this article.
So what i will illustrate in this article is a simple way of accessing spreadsheets as if they were a database. This
article holds good for java running on windows-servers. The access itself is through a jdbc-odbc bridge.
okie..so here we go...
Open the odbc data administrator console and click on system dsn. select add and add the Microsoft Excel driver from the
list of drivers and give a name to the dsn(say exceltest) and select the workbook.
Then all one needs is to connect through this dsn just like connecting to the database and accessing records.
Here's the sample code
import java.io.*;
import java.sql.*;
public class ExcelReadTest{
public static void main(String[] args){
Connection connection = null;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection( "jdbc:odbc:exceltest" );
Statement st = con.createStatement();
ResultSet rs = st.executeQuery( "Select * from [Sheet1$]" );
ResultSetMetaData rsmd = rs.getMetaData();
int numberOfColumns = rsmd.getColumnCount();
while (rs.next()) {
for (int i = 1; i <= numberOfColumns; i++) {
if (i > 1) System.out.print(", ");
String columnValue = rs.getString(i);
System.out.print(columnValue);
}
System.out.println("");
}
st.close();
con.close();
} catch(Exception ex) {
System.err.print("Exception: ");
System.err.println(ex.getMessage());
}
}
}
Answer to Comments:
Hey john ur comment is right and well recieved. The reason for the first row not being printed is that the jdbc-bridge assumes the first row to be akin to column names in the database. Hence the first available row is the name of the column...which explains why the third row is printed if the first row is missing.
Hope this helps and thanks for the comment
Standard sql queries like
Select column_name1,column_name2 from [Sheet1$] where column_name3 like '%bob%';
can be used on the spreadsheet.
You can use the following snippet to print the column names(which is the first row of the spread sheet).
for (int i = 1; i <= numberOfColumns; i++) {
if (i > 1) System.out.print(", ");
String columnName = rsmd.getColumnName(i);
System.out.print(columnName);
}
System.out.println("");
|
|
Other 2 submission(s) by this author
|
|
Report Bad Submission
|
Your Vote
|
| |
Other User Comments
|
5/15/2001 7:41:59 PM: the ghost who walks
I was looking for an easy way to read from spreadsheets and this code served my purpose since my app was java based. (If this comment was disrespectful, please report it.)
|
5/16/2001 10:13:22 AM: John
Nice clean code....I have one question: Why does it start reading fron the 2nd row of data in the spreadsheet? Also if the first row is empty it will not read the data in the 2nd row and starts with the data in the 3rd row. Thanks (If this comment was disrespectful, please report it.)
|
5/21/2001 3:07:37 PM: lisa
simple and an excellent piece!! My 5 cents to it (If this comment was disrespectful, please report it.)
|
5/24/2001 7:59:17 AM: Valli
This is exactly what I was looking for. But my application runs on Linux server. How can this be done if my server is on RedHat6.2 Linux? (If this comment was disrespectful, please report it.)
|
5/24/2001 12:05:34 PM: Manjunath P Reddy
Valli...there are some type 3 jdbc-odbc bridges available in the free market which support linux versions. Check out http://industry.java.sun.com/solutions/products/by_product/0,2348,all-2552-99,00.html for more info one of them. And also...if u reach a dead end you can always run a daemon process on a winnt box which can do the updation to the database. Write to me if u have problems with easy soft's jdbc-odbc bridge.
(If this comment was disrespectful, please report it.)
|
5/24/2001 12:36:20 PM: J2ee Observer
Excellent!!! hope the planet was full of such useful articles. thanx for sharing mangunuth (If this comment was disrespectful, please report it.)
|
5/24/2001 12:49:38 PM: Tania Woods
It looks fine and pretty useful but i have 2Q. (If this comment was disrespectful, please report it.)
|
5/24/2001 12:50:33 PM: Tania Woods
1>since the name Sheet1 is default(which can be anything like billing, invoice, etc) so how do i get the name of the sheet dynamically and build a query. Or is it possible at all? 2>Since the name of the workbook is selected at design time what if a new excel sheet has to be read and then how do i configure at runtime ... pls help? (If this comment was disrespectful, please report it.)
|
5/26/2001 12:56:38 PM: Manjunath P Reddy
Tania..as u know the sheet name by default is sheet1..if someone changes this name currently the program cant handle this..im working on a piece of native code that will enable one to read dynamically the sheet names. The limitation of jdbc-odbc bridge makes it impossible to select the excel sheet at run time. But then one can design application to take care of this kind of problems. U can run a daemon process that looks into a folder and reads the excel into db and then archives the excel sheet into another folder and then keeps waiting for a new file to be read. So one can make sure that the file name is always same and then copy and archive it. Hope this helps. thanks (If this comment was disrespectful, please report it.)
|
5/27/2001 12:18:44 AM: Tania Woods
Thanks for the help..and hope to see the promised stuff here soon.. (If this comment was disrespectful, please report it.)
|
6/15/2001 3:07:22 PM: chris
hey, i was wondering if u ever finished the app u made for your friend b/c my friend has asked me to make a similiar app so if u would, i would appreciate it if i could glance at urs (If this comment was disrespectful, please report it.)
|
7/26/2001 2:15:15 PM: Kamran Aftab
Hi Manjunath:
How would I access individual cells with the SQL statement. For example, if I wanted to access cell A1 on Sheet1? or cells A2-A6 on Sheet2? What would be the SQL statement for that? Where can I find this information? I tried looking up in excel, no help.
Please reply by email.
Thanks, Kamran, kaftab@husky.ca (If this comment was disrespectful, please report it.)
|
7/26/2001 2:20:35 PM: Kamran Aftab
Hi Manjunath:
How would you query for a specific cell. For example: cell A1 on sheet1, or cell A1-2 on sheet1. What would be the SQL statement in these cases. Is there any info available on this anywhere? I tried the help in excel, didn't get much.
Please respond with an email.
Thanks,
Kamran (kaftab@husky.ca) (If this comment was disrespectful, please report it.)
|
8/1/2001 10:03:55 PM: Ajay Tejwani
In my case, I have a column that has got both pure numeric(12345) and purely alphanumeric(testing) type of data.
How can I get both the data? If alphanumeric data is the first data, it treats all the values as alphanumerc and returns null for numeric and vice versa.
Your quick reply shall be appreciated.
Thanks, Ajay (ajay_tejwani@yahoo.com)
(If this comment was disrespectful, please report it.)
|
8/1/2001 10:04:38 PM: Ajay Tejwani
In my case, I have acolumn that has got both pure numeric(12345) and purely alphanumeric(testing) type of data.
How can I get both the data? If alphanumeric data is the first data, it treats all the values as alphanumerc and returns null for numeric and vice versa.
Your quick reply shall be appreciated.
Thanks, Ajay
(If this comment was disrespectful, please report it.)
|
9/24/2001 6:13:18 AM: chakradhar reddy
Hi, now iam working on excel with vba,my boss asked to work on excel and java,my request is that ,how could i connect excel with java please give a detailed answer....thanking you chakri (If this comment was disrespectful, please report it.)
|
10/3/2001 3:13:58 AM: kumar
can i use all DDL Commands . will they work? (If this comment was disrespectful, please report it.)
|
10/3/2001 3:15:34 AM: kumar
hi manju how to delete all the rows from the excel sheet.if i use delete statement its giving me an error.can u pls help.tsk (If this comment was disrespectful, please report it.)
|
10/4/2001 2:49:22 AM: dai
I also wonder why this program read from 2nd. How can I ahust it? (If this comment was disrespectful, please report it.)
|
11/22/2001 9:45:44 PM: Sudhanshu Umalkar
Is it possible to INSERT records into Excel spreadsheet dynamically through Java using method mentioned above i.e. using JDBC-ODBC bridge ?
If yes, please reply at sudhanshu@mandarin-capital.com (If this comment was disrespectful, please report it.)
|
2/4/2002 6:41:45 AM: sisir
Can u tell me how to read from excel sheet on Unix machine? (If this comment was disrespectful, please report it.)
|
3/4/2002 7:15:40 AM: Srikanth
The article is precise in what it does it's good (If this comment was disrespectful, please report it.)
|
3/28/2002 3:11:44 AM: Ranjith
Manjunath, That's great. D'u have any suggestion for reading chart/images/objects from an excel worksheet?
thanks, Ranjith (If this comment was disrespectful, please report it.)
|
4/3/2002 12:19:00 AM: Radhika
How to read an Excel file using DSN-Less Connection. Also wnat to fetch the sheet names dynamically. Pls mail to me to ssdev90@yahoo.com Thanks in Advance..
(If this comment was disrespectful, please report it.)
|
4/3/2002 12:46:28 AM: Radhika
How to Read an Excel file using DSN-Less Connection and to fetch the sheet names dynamically. Please reply to me ASAP. (If this comment was disrespectful, please report it.)
|
6/3/2002 11:13:47 AM: Ravi
hi! there, i would like to know the process of getting the list of excel sheets in an excel file. I'm able to read the excel file using Jdbc-Odbc bridge driver and passing the sheet name as a static parameter. I would like to pass the sheet name as a dynamic value. (If this comment was disrespectful, please report it.)
|
8/12/2002 6:25:05 AM: Gilles Philippart
As an alternative solution, you could also use the POI library from the jakarta project (pure java access to Excel) : http://jakarta.apache.org/poi (If this comment was disrespectful, please report it.)
|
8/12/2002 6:26:57 AM: Gilles Philippart
As an alternative, you could check this out: http://jakarta.apache.org/poi
You now have access to Excel spreadsheets without using an jdbc-odbc bridge ;)
Gilles Philippart (If this comment was disrespectful, please report it.)
|
8/19/2002 10:45:11 PM: Hoyoung Hwang
Good~. But the code is not for excel. it is just program using odbc. if you parse excel file. you can call this, program for excel. and useful in any platform. (If this comment was disrespectful, please report it.)
|
8/22/2002 8:04:05 PM: Johnson Ng
Yes, POI is a better alternative, cause now u can access (If this comment was disrespectful, please report it.)
|
8/23/2002 9:05:35 AM: Raj
hello, how can i write data to excel file at runtime in java or java script can anyone help? plz
(If this comment was disrespectful, please report it.)
|
9/10/2002 6:21:08 PM:
Hello, I am having trouble in defining the connection: Connection con = DriverManager.getConnection( "jdbc:odbc:exceltest" );
I get an error '[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'
Any help would be greatly appreciated. Thanks (If this comment was disrespectful, please report it.)
|
10/3/2002 4:27:58 PM:
Hi, I am trying to upload an excel spreadsheet and tried to get it as a InputStream in server using request.getInputStream. I am getting the Stream, but this stream is not a proper OLE Stream and have lots of junk characters. How to do a proper upload of an XL Spreadsheet to the server. Any reply expected ASAP. Thanks. (If this comment was disrespectful, please report it.)
|
10/9/2002 7:58:16 PM:
Manjunath P Reddy is there anyway of opening a excel spread sheet from Java (If this comment was disrespectful, please report it.)
|
11/6/2002 12:11:49 AM:
How to read and write an Excel file using DSN-Less Connection. Also want to fetch the sheet names dynamically. Pls mail to me to wiroajw@hotmail.com Thanks in Advance.. (If this comment was disrespectful, please report it.)
|
11/19/2002 4:48:49 PM:
Hi Manjunath, I'm facing the same problem as mentioned by Ajay Tewani...I can't seem to make the program read numbers and alphanumeric values from the same column...first few rows I have are numbers and as soon as the resulset traverses to a alphanumeric value, it returns a NULL. Any idea how to get around this... Thanks, Deepak (If this comment was disrespectful, please report it.)
|
11/28/2002 1:03:30 AM:
Please tell me how to enter the sheet name.I get an error : could not find the object Enumeration 6 with the folling line of code
ResultSet rs = st.executeQuery( (If this comment was disrespectful, please report it.)
|
2/1/2003 4:17:40 AM:
Hi,
I am looking for a java program to read a large size excel file with multiple worksheets in it. The test environment is Sun Solaris. I tried using JExcel but there was memory error while reading beyond 1000 rows of data. Does your program stand up to such rigorous testing (If this comment was disrespectful, please report it.)
|
2/21/2003 5:11:18 PM:
Manjunath, If I have to write to a excel sheet from java, so how do i do? (If this comment was disrespectful, please report it.)
|
2/25/2003 4:01:09 AM:
this code works fine if the excel sheet is in a given format.but what if the format is changed(for eg. if the sheet has got a heading in the first 2 rows (If this comment was disrespectful, please report it.)
|
3/18/2003 12:41:10 PM:
i had this error: Exception: [Microsoft][Driver ODBC para Excel] 'Sheet1$' nÒo Ú um nome vßlido. C ertifique-se de que ele inclua somente caracteres ou pontuaþÒo vßlidos e de que nÒo seja longo demais.
tadeudavid@petrobras.com.br (If this comment was disrespectful, please report it.)
|
3/18/2003 12:46:29 PM:
i got this error C:\Temp>java excelreadtest Exception: [Microsoft][Driver ODBC para Excel] 'Sheet1$' nÒo Ú um nome vßlido. C ertifique-se de que ele inclua somente caracteres ou pontuaþÒo vßlidos e de que nÒo seja longo demais.
thanks
(If this comment was disrespectful, please report it.)
|
4/5/2003 9:16:08 PM:
jovem, o erro "C:\Temp>java excelreadtest Exception: [Microsoft][Driver ODBC para Excel] 'Sheet1$' nÒo Ú um nome vßlido. C ertifique-se de que ele inclua somente caracteres ou pontuaþÒo vßlidos e de que nÒo seja longo demais", acontece porque em português 'sheet1$' existe como 'folha1$', provávelmente outros dados estarão incorrectos pq o código é para o excel em inglês. (If this comment was disrespectful, please report it.)
|
4/12/2003 3:18:23 AM:
'Sheet1' can be changed to any sheet presentin the workbook. I have a workbook with the sheets named as (If this comment was disrespectful, please report it.)
|
4/12/2003 3:22:47 AM:
'Sheet1' can be changed to point to any sheet in the file. And it can be got randomly too. I have an excel file with sheets named "month-year".
ResultSet rs = st.executeQuery( "Select * from [" + ReqMonth.getText() + "-" + ReqYear.getText() + "$]\"" );
I get the ReqMonth and ReqYear from the screen. Now the code snippet will display me the contents of the required sheet. (If this comment was disrespectful, please report it.)
|
4/21/2003 8:46:43 PM:
I am having the same problem as ajay_tejwani and Deepak. I can't seem to make the program read numbers and alphanumeric values from the same column...first few rows I have are numbers and as soon as the resulset traverses to a alphanumeric value, it returns a NULL. please help me regarding this.thanks in advance (If this comment was disrespectful, please report it.)
|
5/7/2003 2:27:18 PM:
Open the odbc data administrator console and click on system dsn. select add and add the Microsoft Excel driver from the list of drivers and give a name to the dsn(say exceltest) and select the workbook
Yours, above statement. Does it mean I have to configure my Jpad compiler's "odbc data administrator"? If so, where is it at?
Thank you!!!!!! (If this comment was disrespectful, please report it.)
|
6/20/2003 10:18:03 PM:
hi, my teacher ask me to convert a excel(may include chart) file to a web page. how can do for it. is it also work in linux platform.??? help. help. i have no idea about it ...please help (If this comment was disrespectful, please report it.)
|
6/25/2003 7:22:33 AM:
Hi, Nice piece of code to read data from excel spread sheet. But I want to be able to insert an row of data to a excel spread sheet, how do I do this.
I have modified the above and put in update query, When I try to run this code I get a very strange run time error message. I would appreciate any help on this. info@ilovemcr.com (If this comment was disrespectful, please report it.)
|
7/8/2003 3:56:13 AM:
Hi,I would like to write the data to Excel from applet, The applet should perform 2 functions 1) open the windows excel application in windows system(Not within applet) and populate the excel with the data of the applet. Is it possible to do . my email id is jackiemani@yahoo.com (If this comment was disrespectful, please report it.)
|
11/3/2003 2:11:39 AM:
its good artical.i've got some solution from it. i rate it 5 out of 10. (If this comment was disrespectful, please report it.)
|
11/21/2003 7:20:07 AM:
Hi , is it possible to insert data into the spread sheet using this code JOCKMAHON@hotmail.com (If this comment was disrespectful, please report it.)
|
3/11/2004 4:16:53 PM:
Hi, I followed the steps but I got the error message as: The Microsoft Jet database engine could not find the object. Make sure the object exists and that you spell its name and the path name correctly. Any suggestions on how to fix this problem? Thanks! Please send email to helen@us.ibm.com (If this comment was disrespectful, please report it.)
|
3/12/2004 9:56:53 PM: Manjunath P Reddy
Hi helen,
Im sorry, but this code was posted like centuries ago...adn i cant believe ppl are still accessing it. Anywz looks like your problem is with NOT having ODBC drivers on your machine. Are you sure you are testing this on a microsoft windows(any version). The code used jdbc:odbc bridge(which happens over the microsoft odbc driver for excel)
However, in recent days, there is an excellent pure jdbc api, to access and play around with MicrosoftExcel(not limited to just excel but also other microsoft(read horrible!) format files). It also allows you to define and write dynamic macros and sheets. Id suggest you check out the api from jakarta.org @ http://jakarta.apache.org/poi/
thanks much, MReddy (If this comment was disrespectful, please report it.)
|
4/19/2004 11:36:11 PM:
This is great but I wanted to ask what if you want to access directly to the excel sheet rather than using DSN in control panel (If this comment was disrespectful, please report it.)
|
4/21/2004 12:35:23 AM:
A best and simple sample. Thank you very much (If this comment was disrespectful, please report it.)
|
8/4/2004 10:33:47 AM:
nice work, and i am sure you have been asked this a lot. But i do need to know how you can make any sheet the active sheet so you can use your code to select from it. thanks in advance mlp. mpietrusiewicz@ariba.com (If this comment was disrespectful, please report it.)
|
8/7/2004 1:33:55 PM:
Looks good, but if the excel file has got macros, how do I execute a macro through this. (If this comment was disrespectful, please report it.)
|
9/1/2004 3:25:15 PM:
Hi,
Anybody know who to read excel file with graph. I want to create rows about the graph so that the graph can be push downward. I was able to add rows with data and the graph does not moved downward.
thanks.
tiong (If this comment was disrespectful, please report it.)
|
10/6/2004 4:55:46 AM:
this code is good and i need more help from you inorder to develop my code. in my project the input is given through excel. the excel consists of 5 sheets in one excel file. in each sheet i have specified the range(for eg: in sheet one , i have entered 150 names and set the range as A1:A150 and given a name for the rande as input-name. Now i want to call this range and store the value of the range in a variable of type int i.e. int name = 150. so when ever i change the range , the value of int name must change. if i am able to do this then i can run a loop using this variable.
so , please help me to solve this problem. waiting for your reply (If this comment was disrespectful, please report it.)
|
12/7/2004 4:06:57 AM:
If i want to select particular value of particular coloum,then how do I select. For ex in SQL.. 'Select employee_no from employee where name='abc'.Please let me know ASAP (If this comment was disrespectful, please report it.)
|
1/26/2005 4:57:09 AM:
Nice work.But the problem that I am currently facing in reading the excel data is that the data from some of the cells of a particular column is not being picked up.This column has numeric and alphanumeric values like 74M,744,343 etc.The problem here is that the value 343 is being not picked up from the excel.After reading data from excel,it becomes null in the resultset.But the funniest part of this is that the data 744 is being picked.Hoping for an early reply.Thanks in advance (If this comment was disrespectful, please report it.)
|
2/11/2005 6:06:39 AM:
Code is really nice but I want to khow how to write into the excel file using java. (If this comment was disrespectful, please report it.)
|
2/23/2005 4:47:25 AM:
Can I use sql query (If this comment was disrespectful, please report it.)
|
2/23/2005 4:48:30 AM:
Can I use sql SELECT statement to filter data from excel file? (If this comment was disrespectful, please report it.)
|
2/23/2005 4:57:42 AM:
Can I use sql SELECT statement to filter data from excel file using Apache POI? As it is running on linux platform. (If this comment was disrespectful, please report it.)
|
4/2/2005 4:53:40 PM: dharmendra kishore
excel with java (If this comment was disrespectful, please report it.)
|
6/16/2005 7:40:33 PM:
Hi, i want to begin to write on excel starting by 2d raw. can i do it? in Excel i want also to make a graph starting by java output data. it's possible to set a variable graph or set graph parameters by java? When i make a connection and i execute a java program, i must to open the exel file to apport a real modification to this file? (If this comment was disrespectful, please report it.)
|
6/19/2005 6:30:13 PM:
This code does not handle Cyrillic characters!!! The characters are garbled to ???????
Does anyone know how to solve this issue? (If this comment was disrespectful, please report it.)
|
6/19/2005 6:31:01 PM:
This code does not support cyrillic characters. They get garbled to ???????
Does anyone know about a solution for this issue?
Thx (If this comment was disrespectful, please report it.)
|
8/11/2005 4:18:17 AM: Karin
Hi! This code is good, but I have some problems that I cant't solve. I have a column that has numeric(781) and alphanumeric("hello") data. When I read the data with Java I only get the alphanumeric values and all numeric fields contain NULL. How can I read both types of data or isn't it possible? Another problem is that the first two lines are the headlines. How can I treat them differently? I would appreciate any help on this. Thanks!
(If this comment was disrespectful, please report it.)
|
9/20/2005 4:13:36 PM: automater
My Excel sheet has a column with data value ranging from all numeric to alphanumeric. (Mixed data type). When i read this column using jdbc:odbc, the datatype that i get depends on the data present in first row of this column. If first value for this col is 999, it picks up SQL data type as 8 (decimal). if it is M999, it picks SQL data type as as 12(varchar). The trouble is, whatever is the datatype, rs.getString(..) returns null whenever other type of data is encountered. Can someone suggest whats the solution for this data problem such that i always get the data present in the excel sheet. thks. (If this comment was disrespectful, please report it.)
|
9/20/2005 6:23:31 PM: automater
Well, i found a work around in Excel itself. For Fields that contain both numeric and alpha numeric data, Select "DATA" option from main menu Select "Text to Column" menu item. A wizard comes up. On the 3rd tab, select TEXT as data type for such columns. This way, atleast the data is always consistant to VARCHAR. thks. Save changes and continue (If this comment was disrespectful, please report it.)
|
4/5/2006 7:16:32 AM: skylab
Hi,I followed the steps but I got the error message during runtime as: Exception: [Microsoft][ODBC Excel Driver] The Microsoft Jet database engine could not find the object 'guestinfo'. Make sure the object exists and that you spell its name and the path name correctly. Any suggestions on how to fix this problem? Thanks! Please send email to meetskylab@rediffmail.com (If this comment was disrespectful, please report it.)
|
6/5/2006 6:56:03 PM: Prasanna
Could you please show if Macros in excel can be envoked via Java ?
Thanks. (If this comment was disrespectful, please report it.)
|
8/25/2006 1:02:06 PM: Mahesh
The code is excellent and I am looking for this since one year .
Thanks Mahee (If this comment was disrespectful, please report it.)
|
12/4/2006 6:14:38 PM: M
Your code must have certainly saved me a lot of time! thanks Anna. (If this comment was disrespectful, please report it.)
|
1/6/2007 10:05:49 AM: pavan
Hi
The process is excellent. I tried and it worked.But when i am performing delete query it is not working. Please let me know whether i can perform delete query by using this.If not is there any way to delete specific row.
Hoping a quick reply from you Thanks in advance
Pavan pavan.ivns@gmail.com
(If this comment was disrespectful, please report it.)
|
1/6/2007 10:08:10 AM: pavan
Please let me know can i perform Delete query on this code. If not please let me know if there is any alternative process. (If this comment was disrespectful, please report it.)
|
4/10/2008 7:08:30 AM: dee funk
hi, i just finished a java program that displays the result of a query in a table. The next step is for me to save the information in a microsoft excel file. Please how do i go about this? You can reach me on dipo_oyekanmi@yahoo.com (If this comment was disrespectful, please report it.)
|
8/5/2008 6:49:03 PM: Spaceghost
this code is fine if you're writing a java application on Windows... but if you want a cross-platform solution, that does not require Excel and performs way better than the Excel dll -- check out ExtenXLS from Extentech -- the all-Java Spreadsheet SDK -- www.extentech.com (If this comment was disrespectful, please report it.)
|
5/4/2011 4:06:20 AM: faty
thanks a lot to solve my problem. (If this comment was disrespectful, please report it.)
|
5/4/2011 4:07:42 AM: faty
thank you very much. It help me a lot. (If this comment was disrespectful, please report it.)
|
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular article, please
click here instead.)
To post feedback, first please login.
|