function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DivyaReddyDivyaReddy 

Exporting image on Excel Sheet

HI

I want to export image from visualforce page to Excel Sheet................

 

My code :

 

<apex:page controller="cases_ctrl" contenttype="application/vnd.ms-excel">
<apex:pageBlock title="Cases">
    <apex:pageBlockTable value="{!c}" var="c1">
      <apex:column value="{!c1.CaseNumber}"/>
      <apex:column value="{!c1.date__c}"/>
      <apex:column value="{!c1.image__c}"/>
      <apex:image value="{!c1.image__c}"/>
       </apex:pageBlockTable>
  </apex:pageBlock>

</apex:page>

 

Can any one help on this issue................

Kt YadavKt Yadav
Hi ,
I am still facing the same issue please see below snippet.
<Worksheet ss:Name="Sheet1"> <Table ss:ExpandedColumnCount="100"> <Column ss:Width="180"/> <Row> <Cell ss:StyleID="s66"> <!--<Data ss:Type="String"> --> <img src="https://univar--d01sprt01--c.cs14.content.force.com/servlet/servlet.ImageServer?id=xxxx&oid=xxx"/> <!-- <apex:image value="{!$Resource.SPI}" /> </Data> --> </Cell> </Row> <Row> <Cell ss:StyleID="s16" ><Data ss:Type="String">Field1</Data></Cell> <Cell ss:StyleID="s16"><Data ss:Type="String">Field2</Data></Cell> </Row> <apex:repeat value="{!sample}" var="row"> <Row> <Cell ss:StyleID="s23"><Data ss:Type="String">{!row.id}</Data></Cell> <Cell ss:StyleID="s23"><Data ss:Type="String">{!row.Name}</Data></Cell> </Row> </apex:repeat> </Table> </Worksheet>
Still my excel is not getting the image.

Regards,
Keerti