• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading an Excel file using Java

 
Sathish Mandapaka
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people,
I wanted to know if there is any way to read data from an Excel spread sheet by using Java code and doing some function such as sending a mail depending upon the data which is read from the file.
I wish to write an application but am stuck up at how to start it up.PLease do help me in this issue.

Thanks and Regards,
Sathish Mandapaka
 
Rajasekar Elango
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could do it using jdbc..



you should create data source for excel driver named readxl before running this program
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are libraries that can read Excel files (Jakarta POI and jExcelAPI), and for sending mail you'd use the JavaMail API.

The ODBC route suggested in the previous post only works on Windows.
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No cross post
 
payal agrawal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the URL below;

Reading data from Excel documents at runtime
http://www.java-tips.org/content/view/413/29/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic