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

Adding Image to Export Excel?

Guest
Dec 27, 2010 Dec 27, 2010

hi there guys

i have a problem currently..

is it possible to add image to a generated excel?

if yes, how can i do it?

i tried using <img src='companylogo.jpg'> but it isn't working

kindly help

regards,

hejime

2.2K
Translate
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
Enthusiast ,
Dec 27, 2010 Dec 27, 2010

Using SpreadsheetAddImage this should be quite possible.

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-688c.html

-Fernis

Translate
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
Guest
Dec 27, 2010 Dec 27, 2010

the project isn't using coldfusion 9.. i think should be coldfusion 8

any other alternative to doing this?

my codes are like this at the moment

<cffile action="append" file="#downloadPath##filename#" output="   
<table width='95%' align='center' cellspacing='1'>" addnewline="No">   
    <cfset linecount = lineCount + 1 >
    <cffile action="append" file="#downloadPath##filename#" output="
    <tr>
        <td><img src="#images#company_logo.jpg"></td>
    </tr>" addnewline="No">
    <cfset linecount = lineCount + 1 ><cffile action="append" file="#downloadPath##filename#" output="
</table>
" addnewline="No">

<cfheader value = "attachment; filename=#filename#" name="content-disposition">
<cfcontent type="application/vnd.ms-excel" file="#download_blabla_excel##filename#" deletefile="No">

Translate
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
Explorer ,
Jan 02, 2011 Jan 02, 2011
LATEST

you need to use a direct url.. eg: http://www.abc.com/images/banner.jpg

Translate
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