Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-24-2008, 04:00 PM
Member
 
Join Date: Jan 2008
Posts: 3
chandpuri is on a distinguished road
SQL Query resultset into Excel Sheet
Dear all,
I am very new to java and am writing a program to put the resultset from an SQL query into an excel sheet. I already have downloaded the library jexcelapi library.
Please let me know how could I proceed further on this. It would be great if someone could give me a sample code to see.
Thanks a ton.

Cheers
Chandpuri
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-01-2008, 05:33 PM
Member
 
Join Date: Jan 2008
Posts: 3
chandpuri is on a distinguished road
Any one any clue?
Hi guys,
I dont believe that no one has any clue on writing recordsets into excel from SQL using Java.
I thought there were good knowledgable people.
Cmon guys

Best Regards,
G
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 02-01-2008, 07:08 PM
jelly's Avatar
Member
 
Join Date: Jan 2008
Location: Somerset, UK
Posts: 46
jelly is on a distinguished road
If you have downloaded JExcelApi then there are whole set of demos included, try working your way through the write one - it is comprehensive. Be aware that JExcelApi does not support xslx files i.e. the latest version of excel. If you simply want to get data from a result set into excel then create a .csv file, make the first row your column headers and and each other row the data; excel will open it drectly and convert it on the fly. For example a result with two rows, each row has three columns - age, town, country . Create a csv file that looks something like the following from the data:

Code:
age, town, country 42, london, uk 19, glasgow, scotland
__________________
-- Hope that helps
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 03-26-2008, 11:06 PM
Member
 
Join Date: Mar 2008
Posts: 1
ad1234 is on a distinguished road
Did u made any progress ?

I am working on same thing and thought if you can guide !
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save data from Excel sheet to servlet chandu.v Java Servlet 2 04-10-2008 02:51 PM
Regarding retrieval of sheet names from a excel workbook yuvaraj23 New To Java 0 03-11-2008 03:20 PM
How to set the AutoFilter to Excel Sheet with Wither POI or JXL lnarayana_boga Advanced Java 0 01-29-2008 10:05 AM
no of fonts and cells exceeding error in excel sheet. iimasd AWT / Swing 0 11-06-2007 07:58 AM
JExcel: Copy a cell content from one sheet to another sheet in the same workbook. ukbasak Advanced Java 0 08-02-2007 01:31 PM


All times are GMT +3. The time now is 01:50 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org