mlreportgen.utils.PPTPres class

Package: mlreportgen.utils
Superclasses:

Wrap PowerPoint presentation file

Construction

pptwrap = mlreportgen.utils.PPTPres(filename) wraps a PowerPoint presentation file, specified as filename. There can be only one PPTPres object for a filename.

Input Arguments

expand all

See FileName property.

Output Arguments

expand all

Wrapped PowerPoint presentation file, returned as a character vector.

Properties

expand all

Full path to PowerPoint presentation file, specified as a string or character vector.

Methods

show

Make PowerPoint presentation visible

show(pptPres)

hide

Hide PowerPoint presentation

hide(pptPres)

close

Close PowerPoint presentation

close(pptPres)

save

Save PowerPoint presentation

save(pptPres)

print

Print PowerPoint presentation

print(pptPres)

exportToPDF

Export to PDF document with same file name

exportToPDF(pptPres)

Export to PDF document with specified file name

pdfFullPath = exportToPDF(pptPres,pdfFileName)

isOpen

Test if PowerPoint presentation is open

isOpen(pptPres)

isReadOnly

Test if PowerPoint presentation is read-only

isReadOnly(pptPres)

isSaved

Test if PowerPoint presentation is saved

isSaved(pptPres)

isVisible

Test if PowerPoint presentation is visible

isVisible(pptPres)

netobj

Return a .NET Word document object, which allows using the .NET interface on this object

netobj(pptPres)

Examples

Create PowerPoint Presentation and Test Whether It Is Open

This example creates a PowerPoint presentation object from the existing MyPPTDoc.ppt file.

pptwrap = mlreportgen.utils.PPTPres("MyPPTDoc.ppt");
isOpen(pptwrap)

Introduced in R2018b