Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes Database output results to Excel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Database output results to Excel" Watch "Database output results to Excel" New topic
Author

Database output results to Excel

Angela Koda
Greenhorn

Joined: Mar 29, 2004
Posts: 2
I checked all topics but could not find how to output database results to Excel. My SQL/stored procedures get database results from Oracle Database and I need to output data to Excel spreadsheet with cutomized formatting in spreadsheet. I am interested in mainly creating a Java application and not servlet/JSPs. Any help on this ?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30085
    
149

Angela,
If you don't need formatting, you can create a comma delimitted file and import it into Excel. If you need formatting, look into a framework like poi/hssf


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
krishnaswamy venkataraman
Greenhorn

Joined: May 04, 2004
Posts: 3
Originally posted by Angela Koda:
I checked all topics but could not find how to output database results to Excel. My SQL/stored procedures get database results from Oracle Database and I need to output data to Excel spreadsheet with cutomized formatting in spreadsheet. I am interested in mainly creating a Java application and not servlet/JSPs. Any help on this ?

are you show the results now in Jsp page? If so then save the same file in different name and change the content type to ms-excel and open it on click of a button it will open in excel with same format as what u see in browser!!!


Krishnaswamy.V<br />Think Java<br />Eat Java<br />Live Java
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Database output results to Excel
 
Similar Threads
OutOfMemory error
using jsp to generate excel file
outputing a jsp page in excel format
xls file
display output table in excel file format