I have a requirement to convert stories on visual force pages such as tables fields to ppt files. How should I approach? Please let me know. Thanks.


The contentType parameter needs to be set. You may create a custom button and invoke the VF page. Upon clicking it will be available for download.

<apex:page contentType="application/vnd.ms-powerpoint#YourPPTname.ppt">
    Your PPT Title    
  • when I tried to open the file it says power point cannot open this file. The system already has the option to render visual force page as pdf and email it to a user. Can I somehow do the same with Powerpoint? – Alan Jul 1 '17 at 4:07
  • Use the getcontent() method and add extension of the file as ppt or pptx – Avijit Chakraborty Jul 3 '17 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.