I have cfspreadhsheet which is working fine for downloading the contents. Now I do have attachments for the records. When i am exporting the Export to excel, I want to add that zip file to it also in new sheet. I checked in the docs, there is a function called spreadSheetAddImage
.
Till now, I am doing like this and need to add some things here
<cfquery datasource="#request.dsn#" name="fetch">
SELECT * from mytable
</cfquery>
<cfset filename = "Tickets" & dateformat(now(),'mm_dd_yyyy') & "." & "xls">
<cfset s = spreadsheetNew("Summary")>
<!--- Add header row --->
<cfset spreadsheetAddRow(s, "ID,Date Raised,Summary,Raised By,AssignedTo,Status,Last Updated Date, Time Spent, Ticket Type, Last Updated Comment")>
<!--- format header --->
<cfset spreadsheetFormatRow(s,{bold=true,fgcolor="lemon_chiffon",fontsize=12,border=1},1)>
<cfset spreadsheetAddRows(s, fetch)>
<cfset SpreadsheetFormatColumn(s,{textwrap=true},10)>
<cfset spreadsheetWrite(s, filename, true)>