Main Content

Create Presentation Content

Use the MATLAB® API for PowerPoint® (PPT API) to create presentation content

Use the PPT API to create MATLAB programs to add content to PowerPoint presentations and to create complete PowerPoint presentations. You can create a program that works with the slide master and layouts in a PowerPoint presentation. To get started, see Create a Presentation Generator.

To share your completed presentation program with others who do not have MATLAB installed on their systems, see Compile a Presentation Program.

Functions

openOpen presentation
closeClose presentation
getMasterNamesGet names of slide masters for presentation
getLayoutNamesGet names of layouts for presentation slide master
getTableStyleNamesGet table style names for presentation
addAdd slide to presentation
replaceReplace text, tables, or pictures in presentation
dispatchDispatch PPT status message
mlreportgen.ppt.MessageDispatcher.getTheDispatcherReturn PPT message dispatcher
formatAsTextFormat message as text
formatAsHTMLWrap message in HTML tags
passesFilterDetermine if message passes filter
pptviewOpen Microsoft PowerPoint presentation or convert it to PDF

Classes

mlreportgen.ppt.PresentationCreate a Microsoft PowerPoint presentation container
mlreportgen.ppt.SlidePresentation slide
mlreportgen.ppt.TextText to include in a presentation
mlreportgen.ppt.TextBoxText box
mlreportgen.ppt.ExternalLinkHyperlink to location outside of presentation
mlreportgen.ppt.TableTable in presentation
mlreportgen.ppt.PictureCreate picture to include in presentation
mlreportgen.ppt.ContentPlaceholderPlaceholder for slide content
mlreportgen.ppt.TextBoxPlaceholderPlaceholder for slide title
mlreportgen.ppt.TablePlaceholderPlaceholder for slide table
mlreportgen.ppt.PicturePlaceholderPlaceholder for slide picture
mlreportgen.ppt.MessageDispatcherPPT message dispatcher
mlreportgen.ppt.MessageEventDataHolds message triggering message event
mlreportgen.ppt.MessageFilterFilter to control message dispatcher
mlreportgen.ppt.ProgressMessageProgress message
mlreportgen.ppt.DebugMessageDebugging message
mlreportgen.ppt.ErrorMessageError message
mlreportgen.ppt.WarningMessageWarning message

Topics

Create a Presentation Generator

Create a MATLAB program to generate a PowerPoint presentation.

Create PPT Objects

The PPT API consists of a hierarchical set of data structures, known as objects, that represent a presentation and its contents.

Import the PPT API Package

All PPT class names and constructor names have the prefix mlreportgen.ppt.

Get and Set PPT Object Properties

Most PPT objects have properties that describe the object.

Create a Presentation Object to Hold Content

Every PPT API program must create an mlreportgen.ppt.Presentation object to hold presentation content.

Generate a Presentation

To generate a PowerPoint presentation from your PPT API program, use the API to close the presentation.

Display Presentation Generation Messages

The PPT API can display messages when you generate a PowerPoint presentation.

Compile a Presentation Program

Enable sharing of PPT API programs with users who do not have MATLAB installed.