PPT.AddTitleSlide {R2PPT}R Documentation

Add a title slide to current PowerPoint presentation

Description

Adds a slide to the current PowerPoint presentation of Microsoft type 'ppLayoutTitle'.

Usage

PPT.AddTitleSlide(ppt, title = NULL, subtitle = NULL, title.font = NULL, title.fontsize = NULL, subtitle.font = NULL, subtitle.fontsize = NULL)

Arguments

ppt Required list of objects of class 'COMobject' as initialised by PPT.Init. See example.
title Optional title text.
subtitle Optional subtitle text.
title.font Optional character title font.
title.fontsize Optional numeric title font size.
subtitle.font Optional character subtitle font.
subtitle.fontsize Optional numeric subtitle font size.

Value

ppt Invisibly returns an updated list of objects of class 'COMobject'.

Warning

You must update the list of ComObjects initialised with PPT.Init when you call this function. See the example.

Author(s)

Wayne Jones wayne_betws@hotmail.com

References

See http://sunsite.univie.ac.at/rcom for more details on rcom.

See Also

PPT.Init,PPT.AddTitleSlide,PPT.AddTextSlide,PPT.AddTitleOnlySlide,PPT.Present,PPT.ApplyTemplate,PPT.AddGraphicstoSlide

Examples


## Not run: 
myPres<-PPT.Init(visible=TRUE)
myPres<-PPT.AddBlankSlide(myPres)
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")
rm(myPres)
## End(Not run) 


[Package R2PPT version 1.0 Index]