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 a sheet from a spreadsheet file and stores it in a ColdFusion spreadsheet object.
Returns spreadsheet object.
Microsoft Office Integration
SpreadSheetRead(fileName [, sheetName|sheet]) |
SpreadsheetWrite, SpreadsheetAddColumn, SpreadsheetAddImage, SpreadsheetAddRow, SpreadsheetDeleteRow, SpreadsheetDeleteRows, SpreadsheetFormatRow, SpreadsheetFormatRows, SpreadsheetShiftRows, Other Spreadsheet functions.
ColdFusion 9: Added the function.
Parameter |
Description |
|---|---|
fileName |
A string specifying the path to the spreadsheet file. |
sheetName |
Optional parameter; name of the sheet. You can specify sheet or sheetName. |
sheet |
Optional parameter; number of the sheet. You can specify sheet or sheetName. |
Use this function to read an Excel file with multiple sheets.
| <cfscript> a = SpreadSheetRead("C:\Files\Report.xls","Annual Report") </cfscript> |
Sign in to your account