Exporting to Excel in Coldfusion 9
In past versions of Coldfusion, I was able to export a page to Excel by including this code in the heading:

<cfcontent type="application/vnd.ms-excel">



Coldfusion 9 no longer recognizes this type of page as an Excel file, but the following code will work:

<cfheader name="Content-Disposition"
value="inline; filename=AllRevDist.xls">
<cfcontent type="application/vnd.ms-excel">


Archives