Copy link to clipboard
Copied
I'm trying to insert some gifs into an excel spreadheet created with cfcontent. The essence of the code is this...
<cfcontent type="application/msexcel">
<cfheader name="Content-Disposition" value="attachment; filename=myexcelfile.xls">
<table>
<tr>
<td>
<img src="https://www.mydomain.com/images/mypic.gif">
</td>
</tr>
</table>
...so when the spreadsheet comes up, it shows the images, but they aren't saved in the spreadsheet itself - they're just linking to the image file online. So if I unplug my network cable, the images will disappear, despite the xls file being saved on my local machine.
Does anyone know how to embed the image files themselves into an excel file created through ColdFusion?
Copy link to clipboard
Copied
You might try creating a spreadsheet containing an image using the Microsoft Excel program then save it as HTML. Examining the HTML Excel generates may give you an idea how to structure your HTML to conform to Excel's format.