Reads spreadsheet file into a binary object
spreadsheetReadBinary(spreadsheetObj)
→ returns void
<cfset testSpreadsheet = spreadhsheetnew("New Sheet")>
<cfset spreadsheetAddRow(testSpreadsheet ,"column a,column b,column c")>
<cfheader name="Content-Disposition" value="inline; filename=test.xls">
<cfcontent type="application/vnd-ms.excel" variable="#spreadsheetReadBinary(testSpreadsheet)#">
testSpreadsheet = spreadhsheetnew("New Sheet");
spreadsheetAddRow(testSpreadsheet ,"column a,column b,column c");
cfheader(name="Content-Disposition" value="inline; filename=test.xls")'
cfcontent(type="application/vnd-ms.excel" variable="#spreadsheetReadBinary(testSpreadsheet)#");
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.