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 Create a Standalone Application from a Presentation Program.
Functions
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.Presentation.createTemplate | Create copy of PPT API default presentation template (Since R2021a) |
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 |
Classes
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.InternalLink | Hyperlink to a slide in a presentation (Since R2021a) |
mlreportgen.ppt.Table | Table in presentation |
mlreportgen.ppt.Picture | 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 |
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.
- Create a Standalone Application from a Presentation Program
Enable sharing of PPT API programs with users who do not have MATLAB installed.