Main Content

Create Standalone Applications from Report Programs

If you have the MATLAB® Compiler™ product, you can package your DOM and Report API generation programs into standalone applications. Then you can share the standalone applications with others who do not have a licensed copy of MATLAB.

To enable execution of a standalone report generation program on a system that does not have a licensed copy of MATLAB, you must include makeDOMCompilable() before the first line of DOM or Report API code. For example:

makeDOMCompilable();

import mlreportgen.dom.*

d = Document("output","pdf");
append(d,Text("Hello World"));
close(d);

Note

To enable execution of a standalone MATLAB API for PowerPoint® (PPT API) program, use makePPTCompilable() instead of makeDOMCompilable().

To create a standalone application from a report generation 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