Update PowerPoint Presentation Content

Programmatically update content in an existing presentation

You can use the PPT API to programmatically add dynamic content to an existing PowerPoint® presentation. To get started, see Update Presentation Content Programmatically.


getMasterNamesGet names of slide masters for presentation
getLayoutNamesGet names of layouts for presentation slide master
getTableStyleNamesGet table style names for presentation
findSearch in presentation
addAdd text box, table, or picture to slide
replaceReplace paragraphs, tables, or pictures in slide
findSearch in slide
addAdd paragraph or paragraphs to content placeholder
replaceReplace content placeholder or its content
addAdd paragraph to text box
replaceReplace text box paragraphs
addAdd paragraphs to text box placeholder
replaceReplace text box placeholder paragraphs
replaceReplace table in table placeholder
replaceReplace template table with another table
replaceReplace picture in picture placeholder
replace Replace template picture with another picture
pptviewOpen Microsoft PowerPoint presentation or convert it to PDF
rptviewDisplay report or presentation


mlreportgen.ppt.PresentationCreate Microsoft PowerPoint presentation
mlreportgen.ppt.SlidePresentation slide
mlreportgen.ppt.ContentPlaceholderPlaceholder for presentation content in slide
mlreportgen.ppt.TextBoxPlaceholderSlide placeholder to replace with text box
mlreportgen.ppt.PicturePlaceholderSlide placeholder to replace with picture
mlreportgen.ppt.TablePlaceholderSlide placeholder to replace with table
mlreportgen.ppt.TextBoxText box
mlreportgen.ppt.ParagraphFormatted block of text (paragraph)
mlreportgen.ppt.TextText to include in a presentation
mlreportgen.ppt.ExternalLinkHyperlink to location outside of presentation
mlreportgen.ppt.PictureCreate picture to include in presentation
mlreportgen.ppt.TemplatePicturePicture from template presentation slide
mlreportgen.ppt.TableTable in presentation
mlreportgen.ppt.TemplateTableTable from template presentation slide
mlreportgen.ppt.TableRowTable row
mlreportgen.ppt.TableEntryTable entry
mlreportgen.ppt.ColSpecFormatting for table column
mlreportgen.ppt.ColWidthTable column width

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 Template

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.

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 an mlreportgen.ppt.Text constructor, specifying a character vector.

Create and Format Paragraphs

To create a Paragraph object, use the mlreportgen.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

To create a link to a location outside of a presentation, use the mlreportgen.ppt.ExternalLink constructor.

Create a Presentation Programmatically

This presentation example shows some common tasks involved in creating a presentation with the PPT API.


Presentation Formatting Approaches

Format a presentation by using style sheets, format objects, or format properties.