+ Start a Discussion

Visualforce <apex:page> contenttype as excel (application/vnd.ms-excel)


      I am trying to render a VF as MS excel file with formattings like adding a logo into header, orientation:landscape, and with page breaks.



       <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <style type="text/css">            
              mso-footer-data: "Page &amp;P of &amp;N ";
              margin:.3in .3in .3in .3in;



But nothing works except footer. If anyone has any solutions, Kindly help me. 


P.S: My requirement demands to render only as excel and not as PDF

Hello, Sachii,

Have you found any solution how to insert images in Excel?
Muzammil BajariaMuzammil Bajaria
Did any one found any solution. I am having same issue. Please sare some solution