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

mlreportgen.utils.PPTPres.show(pptPres)

hide

Hide PowerPoint presentation

mlreportgen.utils.PPTPres.hide(pptPres)

close

Close PowerPoint presentation

mlreportgen.utils.PPTPres.close(pptPres)

save

Save PowerPoint presentation

mlreportgen.utils.PPTPres.save(pptPres)

print

Print PowerPoint presentation

mlreportgen.utils.PPTPres.print(pptPres)

exportToPDF

Export to PDF document with same file name

mlreportgen.utils.PPTPres.exportToPDF(pptPres)

Export to PDF document with specified file name

pdfFullPath = mlreportgen.utils.PPTPres.exportToPDF(pptPres,pdfFileName)

isOpen

Test if PowerPoint presentation is open

mlreportgen.utils.PPTPres.isOpen(pptPres)

isReadOnly

Test if PowerPoint presentation is read-only

mlreportgen.utils.PPTPres.isReadOnly(pptPres)

isSaved

Test if PowerPoint presentation is saved

mlreportgen.utils.PPTPres.isSaved(pptPres)

isVisible

Test if PowerPoint presentation is visible

mlreportgen.utils.PPTPres.isVisible(pptPres)

netobj

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

mlreportgen.utils.PPTPres.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