Whatever message this page gives is out now! Go check it out!
spreadsheetIsRowHidden(spreadSheetObject,column)Name | Required | Type | Description |
spreadSheetObject | Yes | ExcelInfo | The Excel spreadsheet object to check whether the column is hidden. |
column | Yes | Integer | The column to check if it's hidden. |
<cfquery name="art" datasource="cfartgallery">
SELECT * FROM ART
</cfquery>
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "art-col-hidden.xls";
// create a spreadsheet object
theSheet=spreadsheetNew("SampleData")
// add rows from the table to the spreadsheet
spreadsheetAddRows(theSheet,art)
// hide column 6 in the spreadsheet
spreadsheetSetColumnHidden(theSheet,6,"TRUE")
// write the spreadsheet
spreadsheetWrite(theSheet,theFile,"yes")
// check if column is hidden
isHidden=spreadsheetIsColumnHidden(theSheet,6)
writeOutput(isHidden) // YES
</cfscript>