• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Database output results to Excel

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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!!!
 
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic