报告生成器创建
Create a MATLAB®program to generate aMicrosoft®Word, HTML, or PDF report
Use theMATLAB Report Generator™application programming interface (API) to create programs to generate reports. To get started, seeCreate 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, seeWhat Is a Reporter?
To share your report generation program with others who do not have MATLAB installed on their systems, seeCreate a Standalone Application from a Report Program.
Classes
Functions
Topics
Overview
- Create a Report Program
Overview and general information about creating a report program.
要求的事情uired Report Tasks and Elements
- Create Report Container
创建报告对象以保存报告内容。 - Construct a Report API or DOM API Object
Construct objects using API classes. - Add Content to a Report
Useappend
to add content to Report API or DOM API reports and report elements. - Close a Report
The last step in creating a report with the DOM API is to close the report.
Optional Report Tasks and Elements
- Import the API Packages
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 Report
Display the generated report in a viewer. - Create a Standalone Application from a Report Program
Enable sharing of report generation programs with users who do not have MATLAB installed.
Troubleshooting
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.