MATLAB Report Generator    

Creating Components

Components are self-contained, modular elements that control the report generation process and insert elements into a report.

A component is a MATLAB object (in the object-oriented programming sense). See the MATLAB documentation for a discussion of MATLAB object-oriented programming.

Why Create Your Own?

In most cases, the components provided with the Report Generator should be more than adequate to meet your needs. However, you may want to create your own components if you want to generate a report that cannot be easily created by components included with the Report Generator. For example, you can create a component that inserts a corporate logo into your report, or you can create a component that plots data.

What's Involved in Creating Components

You can create custom components with the Component Creation Wizard. There are two main steps to creating and running a component. Tutorials for each of these steps are presented:

The Component Creation Wizard is a tool for creating components. It takes you through five steps; there is a screen for each step.

The Component Creation Wizard creates a "skeleton" object, i.e., it sets up the raw structure of the component. It does not create all of the executable M-code.

After you create the component, several M-files are created, including execute.m. The default execute.m file for a new component inserts an empty space into the report. Therefore, you should edit execute.m to run the component properly.


  How to Create Your Own Components Starting the Component Creation Wizard