Main Content

mlreportgen.utils.powerpoint Class

Namespace: mlreportgen.utils

Interact with PowerPoint application and presentations

Description

This utility provides methods for interacting with the PowerPoint® application and PowerPoint presentations. These methods use the MATLAB interface to the Microsoft .NET framework to interact with the PowerPoint editor.

Methods

expand all

Examples

Open PowerPoint Presentations

Open the test.pptx and test1.pptx PowerPoint presentations, which are in the current working folder.

pptPres = mlreportgen.utils.powerpoint.open('test')
pptPres1 = mlreportgen.utils.powerpoint.open('test1') 
pptPres = 

  PPTPres with properties:
    FileName: 'C:\Users\username\Documents\test.pptx'

pptPres1 = 

  pptPres with properties:
    FileName: 'C:\Users\username\Documents\test1.pptx'

Obtain PowerPoint Presentation File Names

Obtain the names of open PowerPoint presentation files.

files = mlreportgen.utils.powerpoint.filenames()
files = 

  1×2 string array

    "C:\Users\username\Documents\test.pptx" ...
    "C:\Users\username\Documents\test1.pptx"

Limitations

  • mlreportgen.utils.powerpoint is not supported in a MATLAB® web app.

Version History

Introduced in R2018b