Read and writes Microsoft Excel spreadsheet files.
<cfspreadsheet>
cfspreadsheet();
read
update
write
true
false
html
csv
action="read"
The variable in which to store the spreadsheet file data. You must specify name or query. If format="csv" then name will contain csv variable.action="write|update"
A variable containing CSV-format data or an ColdFusion spreadsheet object containing the data to write. You must specify name or query.
action="read"
The query in which to store the converted spreadsheet file. You must specify format, name, or query.action="write|update"
A query variable containing the data to write. You must specify name or query.
Reads the Excel file in src into a variable provided in name.
<cfspreadsheet action="read" src="#expandPath( 'example.xls' )#" name="foo" />
Reads the Excel file in src into a ColdFusion query variable provided in query using the first row as column names.
cfspreadsheet( action="read", src=expandPath( 'example.xls' ), query="foo", headerrow=1, excludeHeaderRow=true );
Writes a query to an Excel file.
cfspreadsheet( action="write", fileName=expandPath( 'new-example.xls' ), query="foo", overwrite=true );
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.