Whatever message this page gives is out now! Go check it out!

spreadsheetIsBinaryFormat

Last update:
May 18, 2026

Description

Checks if the spreadsheet is in a binary format.

Returns

True, if spreadsheet is binary, else, false.

History

  • ColdFusion (2025 release): Added the function.

Syntax

spreadsheetIsBinaryFormat(spreadSheetObject)

Parameters

Name
Required
Type
Description
spreadSheetObject
Yes
ExcelInfo
The Excel spreadsheet object whose format needs to be checked.

Example

<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>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page