You can find the CFFiddle demo of this function and other spreadsheet functions as part of a project that is shared with you.
Click the button below to launch CFFiddle.
To copy the project in your workspace in CFFiddle, follow the steps below:
Reads and stores content from a spreadsheet object and returns it as a byte array.
Returns a byte array of the stored spreadsheet information using the cfcontent tag.
Microsoft Office Integration
SpreadsheetReadBinary(spreadsheetobj) |
SpreadsheetAddColumn, SpreadsheetAddImage, SpreadsheetAddRow, SpreadsheetDeleteRow,
SpreadsheetDeleteRows, SpreadsheetFormatRow, SpreadsheetFormatRows, SpreadsheetShiftRows
ColdFusion 9: Added the function.
Parameter |
Description |
|---|---|
spreadSheetObject |
The Excel spreadsheet object to read. |
| <cfheader name="Content-Disposition" value="inline; filename=test.xls"> <cfset a = spreadhsheetnew()> <cfset spreadsheetAddRow(a,"a,b,c")> <!---You can do all the processing---> <cfset bin = spreadsheetReadBinary(a)> <cfcontent type="application/vnd-ms.excel" variable="#bin#" reset="true"> |
Sign in to your account