open

Class: mlreportgen.ppt.Presentation
Package: mlreportgen.ppt

Open presentation

Description

example

open(presentation) opens a presentation and parses the template.

Examples

expand all

Import the PPT package so that you do not have to use long, fully qualified names for the PPT API classes.

import mlreportgen.ppt.*

Create a presentation.

ppt = Presentation('myPresentation.pptx');

Open the presentation.

open(ppt);

Add a title slide to the presentation.

slide = add(ppt,'Title Slide');
replace(slide,'Title','My Title');

Close and view the presentation.

close(ppt);
rptview(ppt);

Input Arguments

expand all

Presentation to open, specified as an mlreportgen.ppt.Presentation object.

Tips

  • To create a copy of the PPT API default template for customization, you can create a presentation and open and close the presentation without adding any slides.

Introduced in R2015a