Meaningless Drivel is fun!*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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: 166
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://aspose.com/file-tools
 
subject: Need help on writing table from MS Access to MS Excel
 
Similar Threads
handling excel sheet with java
integrating MS Excel in a Java Program
populate data from csv into oracle
How to generate real excel reports
YUI DataTable implimentation Help