Update PowerPoint Presentation Content
You can use the PPT API to programmatically add dynamic content to an existing PowerPoint® presentation. To get started, see Update Presentation Content Programmatically.
Functions
getMasterNames | Get names of slide masters for presentation |
getLayoutNames | Get names of layouts for presentation slide master |
getTableStyleNames | Get table style names for presentation |
find | Search a presentation |
add | Add text box, table, or picture to slide |
replace | Replace text, tables, or pictures in a slide |
find | Search slide for content |
add | Add paragraphs to content placeholder |
replace | Replace content placeholder or content |
add | Add paragraph to text box |
replace | Replace text box paragraphs |
add | Add content to text box placeholder |
replace | Replace text box placeholder content |
replace | Replace table placeholder with table |
replace | Replace template table with another table (Since R2019b) |
replace | Replace picture placeholder with picture |
replace | Replace template picture with another picture (Since R2019b) |
pptview | Open Microsoft PowerPoint presentation or convert it to PDF |
rptview | Display report or presentation |
Classes
mlreportgen.ppt.Presentation | Create a Microsoft PowerPoint presentation container |
mlreportgen.ppt.Slide | Presentation slide |
mlreportgen.ppt.ContentPlaceholder | Placeholder for slide content |
mlreportgen.ppt.TextBoxPlaceholder | Placeholder for slide title |
mlreportgen.ppt.PicturePlaceholder | Placeholder for slide picture |
mlreportgen.ppt.TablePlaceholder | Placeholder for slide table |
mlreportgen.ppt.TextBox | Text box |
mlreportgen.ppt.Paragraph | Formatted block of text (paragraph) |
mlreportgen.ppt.Text | Text to include in a presentation |
mlreportgen.ppt.ExternalLink | Hyperlink to location outside of presentation |
mlreportgen.ppt.InternalLink | Hyperlink to a slide in a presentation (Since R2021a) |
mlreportgen.ppt.Picture | Picture to include in presentation |
mlreportgen.ppt.TemplatePicture | Picture from template presentation slide (Since R2019b) |
mlreportgen.ppt.Table | Table in presentation |
mlreportgen.ppt.TemplateTable | Table from template presentation slide (Since R2019b) |
mlreportgen.ppt.TableRow | Table row |
mlreportgen.ppt.TableEntry | Table entry |
mlreportgen.ppt.ColSpec | Formatting for table column |
mlreportgen.ppt.ColWidth | Table column width |
Concepts
- Presentation Formatting Approaches
Format a presentation by using style sheets, format objects, or format properties.
Examples and How To
- Update Presentation Content Programmatically
You can use the PPT API to update content programmatically in an existing PowerPoint presentation.
- Create a Presentation Generator
Create a MATLAB® program to generate a PowerPoint presentation.
- Set Up a PowerPoint Presentation Template
A PowerPoint template specifies the fixed content and default layout and appearance of the slides in a presentation.
- Add Slides
To add a slide to a presentation, use the PPT API to add slide based on a slide layout defined in the PowerPoint presentation template.
- Add and Replace Presentation Content
To use the PPT API to add, or replace, content in a PowerPoint presentation:
- Create and Format Text
You can create a
Text
object using anmlreportgen.ppt.Text
constructor, specifying a character vector. - Create and Format Paragraphs
To create a
Paragraph
object, use themlreportgen.ppt.Paragraph
constructor. - Create and Format Tables
Create a table using an
mlreportgen.ppt.Table
object. - Create and Format Pictures
To create a picture for a presentation, use the
mlreportgen.ppt.Picture
constructor. - Create and Format Links
In a presentation, you can create an internal link, from one slide to another slide, or an external link to a location outside of the presentation.
- Create a Presentation Programmatically
Use the MATLAB API for PowerPoint (PPT API) to generate a presentation.