Main Content

Create a Standalone Application from a Presentation Program

If you have the MATLAB® Compiler™ product, you can package your MATLAB API for PowerPoint® (PPT API) programs into standalone applications. Then you can share the standalone application with others who do not have a licensed copy of MATLAB.

To enable execution of standalone PPT API programs on a system that does not have a licensed copy of MATLAB, you must include makePPTCompilable() before the first line of PPT API code. For example:

makePPTCompilable();

import mlreportgen.ppt.*

ppt = Presentation("myPresentation");
open(ppt);
slide = add(ppt,"Title Slide");
replace(slide,"Title","My Title");
close(ppt);

Note

To enable execution of standalone DOM and Report API programs, use makeDOMCompilable() instead of makePPTCompilable().

To create a standalone application from a PPT API program, use the compiler.build.standaloneApplication (MATLAB Compiler) function or the Application Compiler (MATLAB Compiler) app. See Create Standalone Application from MATLAB Function (MATLAB Compiler).

See Also

(MATLAB Compiler)

Related Topics