Main Content

close

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

Close presentation

Description

example

close(presentation) closes the specified mlreportgen.ppt.Presentation object and generates the associated Microsoft® PowerPoint® presentation file.

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 and add a title slide.

ppt = Presentation('myPresentation.pptx');
open(ppt);
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 close and generate, specified as an mlreportgen.ppt.Presentation object.

Version History

Introduced in R2015a