The Oracle ExcelDocumentType project provides an open source Oracle PL/SQL user defined type and utilities designed to generate fully functional Microsoft Excel spreadsheets from within the database. The code generates Excel XML data.
Excel Document Generated by the ExcelDocumentType
Excel Document with Expanded Columns
Excel Document with Styles Added (generated by ExcelDocument