• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Images in Excel with CFContent

New Here ,
Jan 21, 2010 Jan 21, 2010

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?

TOPICS
Advanced techniques

Views

667

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jan 22, 2010 Jan 22, 2010

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation