Use the MATLAB Report Generator™ application programming interface (API) to create programs to generate reports. To get started, see Create a Report Program. Other topics below have details about the required and optional tasks, and the elements that make up a report generator program. For general information on reporters, see What Is a Reporter?
To share your report generation program with others who do not have MATLAB installed on their systems, see Compile a Report Program.
Create report object to hold report content.
Construct a Report API or DOM API Object
Construct objects using API classes.
Use append
to add content to Report API or DOM API reports
and report elements.
The last step in creating a report with the DOM API is to close the report.
Import packages so that you do not have to use long, fully qualified class names.
Display Progress and Debugger Messages
Specify messages to display when generating a report.
Display the generated report in a viewer.
Enable sharing of report generation programs with users who do not have MATLAB installed.
Resolve Error from Closing a PDF Document on a Cloud Drive
Troubleshoot an error that is caused by file contention during PDF generation on a cloud drive.