SHARE
TWEET

Untitled

a guest Oct 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cfset exportData.body = []>
  2. <cfset exportData.body.append(["ACR", "", "", "", "Last"])>
  3. <cfset exportData.body.append(["", "", "", "", "Last"])>
  4.  
  5. <cfset Workbook = SpreadSheetNew("Products")>
  6. <cfset SpreadsheetAddRows( Workbook, exportData.body, 2, 1 )>          
  7.            
  8. <!---Trigger download to excel file in browser--->
  9. <cfheader name="content-disposition" value="attachment; filename=PulledData.xls">
  10. <cfcontent type="application/msexcel" variable="#spreadsheetReadBinary(workbook)#" reset="true">
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top