Created
October 2, 2019 18:59
-
-
Save trycf/5eff4bfbefdc0fc57a9caa336dd34f62 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset exportData.body = []> | |
<cfset exportData.body.append(["ACR", "", "", "", "Last"])> | |
<cfset exportData.body.append(["", "", "", "", "Last"])> | |
<cfset Workbook = SpreadSheetNew("Products")> | |
<cfset SpreadsheetAddRows( Workbook, exportData.body, 2, 1 )> | |
<!---Trigger download to excel file in browser---> | |
<cfheader name="content-disposition" value="attachment; filename=PulledData.xls"> | |
<cfcontent type="application/msexcel" variable="#spreadsheetReadBinary(workbook)#" reset="true"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment