Main Content

open

Class: mlreportgen.ppt.Presentation
Namespace: mlreportgen.ppt

Open presentation

Description

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

example

Examples

expand all

Import the PPT namespace 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.

Version History

Introduced in R2015a