• Rudi Hulsbos
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi all,

We have a visualforce page renderred as an excel workbook:
<Row ss:Height="87">
    <Cell ss:Index="3" ss:StyleID="s87"><Data ss:Type="String"><img src="https://c.cs17.content.force.com/servlet/servlet.ImageServer?id=***********&oid=**********&lastMod=1435054046000"/></Data></Cell>
</Row>

But the image is not displaying. We have tried multiple options but cannot get the image to display.

Any ideas what else we could try?

Thanks,
Rudi
Hi, Guys.

I'm trying to create a VF-page which is opened as Excel file. I didn't meet any problems with text, tables, CSS-styles, but I can't insert images into the document. Images are not displayed (I can see their borders only) in Excel editor.
Let me provide simple test code of my VisualForce page:

<apex:page controller="TEST_ExcelReportController" standardStylesheets="false" sidebar="false"
  showHeader="false" showChat="false" contentType="application/vnd.ms-excel#Test_ExcelReport.xls">
    <table>
        <tr>
            <td>
                <apex:image url="http://icons.iconarchive.com/icons/benjigarner/softdimension/256/Excel-icon.png"/>
            </td>
            <td>
                <img src="http://images.google.com/intl/en_ALL/images/logos/images_logo_lg.gif"/>
            </td>
        </tr>
    </table>
</apex:page>


Does anybody know how we can correctly insert images in Excel-files?