Whatever message this page gives is out now! Go check it out!
streamingSpreadsheetRead(source [, options])Name | Required | Type | Description |
source | Yes | String | The file path of the spreadsheet to be read. |
options | No | Struct | Configuration options for reading the spreadsheet. |
Key | Type | Description |
sheetName | String | Name of the sheet to be read. |
format | String | 'html', 'csv', or 'query'. |
headerRow | Number | Row number that contains column names. |
rows | String | The range of rows to read. Specify a single number, a hyphen-separated row range, a comma-separated list, or any combination of these; for example: 1,3-6,9. If you do not specify a row or a range of rows, all rows are returned. |
columns | String | Column number or range of columns. Specify a single number, a hyphen-separated column range, a comma-separated list, or any combination of these; for example: 1,3-6,9. |
destinationFilePath | String | The file path to save the html/csv string. |
excludeHeaderRow | Boolean | The flag to exclude the header row from results. |
randomAccessWindowSize | Number | Maximum number of rows to be kept in memory at a time. The default value is 100. |
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "file-read-example.xlsx";
readStruct={sheetName="Sheet1",format="html",headerRow=1, excludeHeaderRow="TRUE", rows="1-9"}
value=streamingspreadsheetread(#theFile#,readStruct)
writeDump(value)
</cfscript><cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "file-read-example.xlsx";
readStruct={sheetName="Sheet1",format="query",headerRow=1, excludeHeaderRow="TRUE", rows="1-9"}
value=streamingspreadsheetread(#theFile#,readStruct)
writeDump(value)
</cfscript><cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "streamingSpreadsheetReadTestFile.xlsx";
readStruct={sheetName="Sheet1",format="csv",rows="1-9"}
value=streamingspreadsheetread(#theFile#,readStruct)
writeDump(value)
</cfscript>