PPT.ApplyTemplate | R Documentation |
Applies a Template Design to current PowerPoint presentation.
PPT.ApplyTemplate(ppt,file)
ppt |
Required list of COM objects as initialised by PPT.Init. See example. |
file |
Required filename giving the full file path of PowerPoint Template file. See example. |
ppt |
Invisibly returns a list of COM objects. |
You must save the returned list of COM objects initialised with PPT.Init to an R object. See the example.
Wayne Jones wayne.w.jones@shell.com
See https://github.com/omegahat/RDCOMClient for more details on RDCOMClient and https://github.com/waynegitshell/R2PPT/ for R2PPT source code.
PPT.Init
,PPT.Present
,PPT.SaveAs
,PPT.Close
,PPT.AddTitleSlide
,PPT.AddTextSlide
,
PPT.AddTitleOnlySlide
,PPT.Present
,PPT.ApplyTemplate
,PPT.AddGraphicstoSlide
## Not run: myPres<-PPT.Init() # or myPres<-PPT.Init(method="RDCOMClient") myPres<-PPT.AddTitleSlide(myPres,title="Title Slide",subtitle="Subtitle here") myPres<-PPT.AddTitleOnlySlide(myPres,title="Title Only",title.fontsize=40,title.font="Arial") myPres<-PPT.AddTextSlide(myPres,title="Text Slide",text="Text1 \rText2 \rText3",text.font="Arial") #### Must specify full file path to PowerPoint template file. #### For PowerPoint 2000 & 2003 should be something like: myPres<-PPT.ApplyTemplate(myPres,file="C:/Templates/Designs/Carnation.pot") ### For PowerPoint 2007 should be something like: myPres<-PPT.ApplyTemplate(myPres,file="C:/Templates/1033/ClassicPhotoAlbum.potx") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.