PPT.ApplyTemplate {R2PPT} | R Documentation |
Applies a Template Design to current PowerPoint presentation using rcom.
PPT.ApplyTemplate(ppt,file)
ppt |
Required list of objects of class 'COMobject' as initialised by PPT.Init. See example. |
file |
Required filename giving the full file path of PowerPoint Template file. See example. |
ppt |
Invisibly returns an initialised list of objects of class 'COMobject'. |
You must update the list of ComObjects initialised with PPT.Init when you call this function.
Wayne Jones wayne_betws@hotmail.com
See http://sunsite.univie.ac.at/rcom for more details on rcom.
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(visible=TRUE) 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:/Program Files/Microsoft Office/Templates/Presentation Designs/Carnation.pot") ### For PowerPoint 2007 should be something like: myPres<-PPT.ApplyTemplate(myPres,file="C:/Program Files/Microsoft Office/Templates/1033/ClassicPhotoAlbum.potx") ## End(Not run)