aspose file tools
The moose likes JDBC and the fly likes Need help on writing table from MS Access to MS Excel Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Need help on writing table from MS Access to MS Excel " Watch "Need help on writing table from MS Access to MS Excel " New topic
Author

Need help on writing table from MS Access to MS Excel

catherine matthews
Ranch Hand

Joined: Jan 22, 2006
Posts: 78
Hi everyone,

I need to export a MS Access database table to MS excel spreadsheet in my java program. I read something about JExcelAPI. Is that the only way of doing it or i have some other options? Please help. Thanks
Dan Murphy
Ranch Hand

Joined: Mar 29, 2005
Posts: 126
Hi,

You should be able to read the data in the Access table (into memory) using JDBC. Once you have the data in memory you can could write it to Excel format using the Apache POI library: http://poi.apache.org/

Cheers,
Dan


SCJP, SCJD, SCWCD
Jhakda Velu
Ranch Hand

Joined: Feb 26, 2008
Posts: 158
Hi
How large is your data?
if its say >45k records,i suggest using JExcel to POI. Its more stable.
Also,JExcel provides lot of inbuil functions like opening and writing to another sheet if th upper limit of number of rows in a sheet is reached.
All the best.

Jhakda


If I become filthy rich, I'll sponsor research for painless dental treatment at Harvard Medical School. Thats why,I'm learning Java.I have 32 teeth, 22 are man made.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Need help on writing table from MS Access to MS Excel
 
Similar Threads
YUI DataTable implimentation Help
integrating MS Excel in a Java Program
handling excel sheet with java
How to generate real excel reports
populate data from csv into oracle