Main Content

close

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

Close presentation

Description

tf = close(presentation) closes the mlreportgen.ppt.Presentation object specified by presentation, generates the associated Microsoft® PowerPoint® presentation file, and returns 1 if successful. If the object specified by presentation is not currently open, then it returns 0.

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 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