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.
open | Open presentation |
close | Close presentation |
getMasterNames | Get names of slide masters for presentation |
getLayoutNames | Get names of layouts for presentation slide master |
getTableStyleNames | Get table style names for presentation |
add | Add slide to presentation |
replace | Replace text, tables, or pictures in presentation |
dispatch | Dispatch PPT status message |
mlreportgen.ppt.MessageDispatcher.getTheDispatcher | Return PPT message dispatcher |
formatAsText | Format message as text |
formatAsHTML | Wrap message in HTML tags |
passesFilter | Determine if message passes filter |
pptview | Open Microsoft PowerPoint presentation or convert it to PDF |
mlreportgen.ppt.Presentation | Create a Microsoft PowerPoint presentation container |
mlreportgen.ppt.Slide | Presentation slide |
mlreportgen.ppt.Text | Text to include in a presentation |
mlreportgen.ppt.TextBox | Text box |
mlreportgen.ppt.ExternalLink | Hyperlink to location outside of presentation |
mlreportgen.ppt.Table | Table in presentation |
mlreportgen.ppt.Picture | Create picture to include in presentation |
mlreportgen.ppt.ContentPlaceholder | Placeholder for slide content |
mlreportgen.ppt.TextBoxPlaceholder | Placeholder for slide title |
mlreportgen.ppt.TablePlaceholder | Placeholder for slide table |
mlreportgen.ppt.PicturePlaceholder | Placeholder for slide picture |
mlreportgen.ppt.MessageDispatcher | PPT message dispatcher |
mlreportgen.ppt.MessageEventData | Holds message triggering message event |
mlreportgen.ppt.MessageFilter | Filter to control message dispatcher |
mlreportgen.ppt.ProgressMessage | Progress message |
mlreportgen.ppt.DebugMessage | Debugging message |
mlreportgen.ppt.ErrorMessage | Error message |
mlreportgen.ppt.WarningMessage | Warning message |
Create a Presentation Generator
Create a MATLAB program to generate a PowerPoint presentation.
The PPT API consists of a hierarchical set of data structures, known as objects, that represent a presentation and its contents.
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.
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.