Search Altered Pixels.net::

ColdFusion Export to Excel

March 7, 2009 ·

I wrote this excel custom tag so I could export reports in my coldfusion system, and compare the date on multiple notebooks. Additionally, I've added the following functions:
- You can specify the type of data in a particular field (string, number, currency, date)
- You can specify row colors
- You can specify whether to display a header row; you can even freeze the header row
- Yes/No format to the data types you can specify and includes a debug attribute that will turn off the Excel conversion so you can view any errors you are getting
- You can have multiple Workbooks (Excel Tabs)

This tags uses Excel XP's XML format to let you pass in multiple queries to create an Excel workbook containing multiple spreadsheets, and has been tested with
- Excel 2000
- Excel 2003
- Excel XP
- Excel 2007

A VTM file is also included.
Download the custom Function here.

Tags: ColdFusion Tutorials