Whatever message this page gives is out now! Go check it out!
spreadsheetGroupColumns(spreadSheetObject, int startColumn, int endColumn)Name | Required | Type | Description |
spreadSheetObject | Yes | ExcelInfo | The Excel spreadsheet object to which you’ll group columns between two specified columns. |
startColumn | Yes | Integer | The column number of the row where the column starts. |
endColumn | Yes | Integer | The column number of the row where the column ends. |
<cfquery name="art" datasource="cfartgallery">
SELECT * FROM ART
</cfquery>
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "art-col.xls";
// create a spreadsheet object
theSheet=spreadsheetNew("SampleData")
// add rows from the table to the spreadsheet
spreadsheetAddRows(theSheet,art)
// group columns
spreadsheetGroupColumns(theSheet,3,5)
// write the spreadsheet
spreadsheetWrite(theSheet,theFile,"yes")
</cfscript>