Create Complete PowerPoint Presentations

Programmatically create complete PowerPoint® presentations

You can create a complete PowerPoint presentation with the PPT API. Creating a complete presentation programmatically allow you to use different templates for the same content. To get started, see Create a Presentation Programmatically.

Functions

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

Classes

mlreportgen.ppt.PresentationCreate a Microsoft PowerPoint presentation container
mlreportgen.ppt.SlidePresentation slide
mlreportgen.ppt.ContentPlaceholderPlaceholder for slide content
mlreportgen.ppt.TextBoxPlaceholderPlaceholder for slide title
mlreportgen.ppt.PicturePlaceholderPlaceholder for slide picture
mlreportgen.ppt.TablePlaceholderPlaceholder for slide 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.TableTable in presentation
mlreportgen.ppt.TableRowTable row
mlreportgen.ppt.TableEntryTable entry
mlreportgen.ppt.ColSpecFormatting for table column
mlreportgen.ppt.ColWidthTable column width

Examples and How To

Create a Presentation Programmatically

Use the MATLAB API for PowerPoint (PPT API) to generate a 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.

Update Presentation Content Programmatically

You can use the PPT API to update content programmatically in an existing PowerPoint presentation.

Concepts

Presentation Formatting Approaches

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

Featured Examples