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
ethan huntethan hunt 

Render VisualForce Page As PPT



Please if anybody can help me in generating PPT from visualforce page with slides break.




Hi Sidhartha,

You have to use contentType attribute of <apex:page> tag. see below example..


Visualforce Page:

<apex:page contentType="application/">
    Your PPT Title    



Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator & Advanced Administrator & Sales cloud consultant
My Blog:-

ethan huntethan hunt

Hi Hitesh,


Thnks for your suggestion. With ptt i need to have break in slides. While i am running the code i am getting the ppt generated , but i am not able to open it.




Here is an idea... You can add Google's doc viewer to the page as an iframe with the url to the ppt.


<iframe src="<<YourPPTUrl>>&embedded=true" width="600" height="780" style="border: none;"></iframe>


Hope this helps!