Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Functions

mlreportgen.ppt.Presentation.getMasterNamesGet names of slide masters for presentation
mlreportgen.ppt.Presentation.getLayoutNamesGet names of layouts for presentation slide master
mlreportgen.ppt.Presentation.getTableStyleNamesGet table style names for presentation
mlreportgen.ppt.Presentation.findSearch in presentation
mlreportgen.ppt.Slide.addAdd text box, table, or picture to slide
mlreportgen.ppt.Slide.replaceReplace paragraphs, tables, or pictures in slide
mlreportgen.ppt.Slide.findSearch in slide
mlreportgen.ppt.ContentPlaceholder.addAdd paragraph or paragraphs to content placeholder
mlreportgen.ppt.ContentPlaceholder.replaceReplace content placeholder or its content
mlreportgen.ppt.TextBox.addAdd paragraph to text box
mlreportgen.ppt.TextBox.replaceReplace text box paragraphs
mlreportgen.ppt.TextBoxPlaceholder.addAdd paragraphs to text box placeholder
mlreportgen.ppt.TextBoxPlaceholder.replaceReplace text box placeholder paragraphs
mlreportgen.ppt.TablePlaceholder.replaceReplace table in table placeholder
mlreportgen.ppt.PicturePlaceholder.replaceReplace picture in picture placeholder
pptviewOpen Microsoft PowerPoint presentation or convert it to PDF

Classes

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
mlreportgen.ppt.ExternalLinkHyperlink to location outside of presentation
mlreportgen.ppt.PictureCreate picture to include in presentation
mlreportgen.ppt.TableTable
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 Program

You can use the MATLAB® API for PowerPoint (PPT API) to update and create PowerPoint presentations programmatically.

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

To create a table, you can:

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.

Concepts

Presentation Formatting Approaches

With the PPT API, you can use a PowerPoint template and PPT API format objects and properties to specify the appearance of an object.

Was this topic helpful?