Reply
Old 05-11-2009, 02:36 AM Export to excel
Novice Talker

Posts: 6
Name: Ebosys India
Trades: 0
I have data in ms-access database.I want to export it to Excel on click of a button which is in front end developed in core java.
I am working on frames NOT applet.


I developed a macro in access to export data to excel.
But i dont know how to run this macro on click of a button in core java application.
Is it possible to run ms-access macro on click of a button in core java application?


If not possible kindly suggest some other way.


Kindly do me a favour in this regard.


Thanks in advance.
ebosysindia is offline
Reply With Quote
View Public Profile Visit ebosysindia's homepage!
 
 
When You Register, These Ads Go Away!
Old 06-11-2009, 12:57 PM Re: Export to excel
willcode4beer's Avatar
Super Moderator

Posts: 1,388
Name: Paul Davis
Location: San Francisco
Trades: 1
Yes you can do it in Java but, I think you're going the wrong way about it.
If you use SWT, you can access both MS Access and Excel with your java program. You will need to ship the dlls or so's depending on the user's OS.

However, I think you'd be much better off using JDBC to get the data from Access, and using POI to create your spreadsheet. Just skip the whole macro bit entirely.
__________________
Paul Davis

earn $$$ write for willCode4Beer.com
willcode4beer is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Export to excel
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10204 seconds with 13 queries