Whatever message this page gives is out now! Go check it out!
spreadsheetIsBinaryFormat(spreadSheetObject)Name | Required | Type | Description |
spreadSheetObject | Yes | ExcelInfo | The Excel spreadsheet object whose format needs to be checked. |
<cfquery name="art" datasource="cfartgallery">
SELECT * FROM ART
</cfquery>
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "art-another.xls";
// create a spreadsheet object
theSheet=spreadsheetNew("SampleData")
// add rows from the table to the spreadsheet
spreadsheetAddRows(theSheet,art)
// write the spreadsheet
spreadsheetWrite(theSheet,theFile,"yes")
// check if spreadsheet is binary
isBinary=spreadsheetIsBinaryFormat(theSheet)
writeOutput(isBinary) // YES
</cfscript>