Format <cfspreadsheet> as table
问题 I'm using <cfspreadsheet> to output a database query to an Excel spreadsheet. When these spreadsheets are created manually it is possible to highlight all the cells and 'Format as table' . This means when the table header is clicked, the user can sort the table ascending and descending. Is it possible to specify this formatting in the ColdFusion code when generating the Excel file? 回答1: If you are on Coldfusion 9, you can use SpreadSheetNew, then SpreadSheetAddRow, SpreadSheetFormat functions