Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 works with the slide master and layouts in a PowerPoint presentation. To get started, see Create a Presentation Program.

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

Functions

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

Classes

mlreportgen.ppt.PresentationCreate Microsoft PowerPoint presentation
mlreportgen.ppt.SlidePresentation slide
mlreportgen.ppt.TextText
mlreportgen.ppt.TextBoxText box
mlreportgen.ppt.ExternalLinkHyperlink to location outside of presentation
mlreportgen.ppt.TableTable
mlreportgen.ppt.PictureCreate picture to include in presentation
mlreportgen.ppt.ContentPlaceholderPlaceholder for presentation content in slide
mlreportgen.ppt.TextBoxPlaceholderSlide placeholder to replace with text box
mlreportgen.ppt.TablePlaceholderSlide placeholder to replace with table
mlreportgen.ppt.PicturePlaceholderSlide placeholder to replace with 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 Program

You can use the MATLAB API for PowerPoint (PPT API) to update and create PowerPoint presentations programmatically.

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

If the MATLAB Compiler™ product is installed on your system, you can use it to compile your presentation program.

Was this topic helpful?