You can use the PPT API to programmatically add dynamic content to an existing PowerPoint® presentation. To get started, see Update Presentation Content Programmatically.
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 |
replace | Replace picture placeholder with picture |
replace | Replace template picture with another picture |
pptview | Open Microsoft PowerPoint presentation or convert it to PDF |
rptview | Display report or presentation |
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.Picture | Create picture to include in presentation |
mlreportgen.ppt.TemplatePicture | Picture from template presentation slide |
mlreportgen.ppt.Table | Table in presentation |
mlreportgen.ppt.TemplateTable | Table from template presentation slide |
mlreportgen.ppt.TableRow | Table row |
mlreportgen.ppt.TableEntry | Table entry |
mlreportgen.ppt.ColSpec | Formatting for table column |
mlreportgen.ppt.ColWidth | Table column width |
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.
When you use an existing PowerPoint presentation as a template for a PPT API presentation, the content from the template presentation appears in the new PPT API presentation.
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:
You can create a Text
object using an mlreportgen.ppt.Text
constructor,
specifying a character vector.
To create a Paragraph
object, use the mlreportgen.ppt.Paragraph
constructor.
Create a table using an mlreportgen.ppt.Table
object.
To create a picture for a presentation, use the mlreportgen.ppt.Picture
constructor.
To create a link to a location outside of a presentation, use
the mlreportgen.ppt.ExternalLink
constructor.
Create a Presentation Programmatically
Use the MATLAB API for PowerPoint (PPT API) to generate a presentation.
Presentation Formatting Approaches
Format a presentation by using style sheets, format objects, or format properties.