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

Hi,

 

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

 

Regards

hitesh90hitesh90

Hi Sidhartha,

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

 

Visualforce Page:

<apex:page contentType="application/vnd.ms-powerpoint#YourPPTname.ppt">
    Your PPT Title    
</apex:page>

 

 

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:- http://mrjavascript.blogspot.in/

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.

 

Regards

izayizay

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="http://docs.google.com/viewer?url=<<YourPPTUrl>>&embedded=true" width="600" height="780" style="border: none;"></iframe>

 

Hope this helps!