| Report Generator | ![]() |
Using the New Component
After editing the execute.m method, you are ready to use your component in a report. Add the component to a setup file and click on the Report button. If there is an error during generation, the Report Generator will skip over the component.
Create a setup file that looks like this.
[-] Report - rplot-test.rpt
[-] Paragraph - <Text from subcomponents>
[ ] Text - Random Plotted Figure has handle=
[ ] Figure Random Plot
Your report will look like this (it will contain the following line).
Random Plotted Figure has handle=1
Note that the handle number may be different depending on how many figure windows you had open at the time of generation.
You now have a functioning component. The next section discusses how to add new attributes to the component and change the execute.m method so that it inserts a snapshot of the random plot figure into the report.
| Editing execute.m to Insert Text Output into the Report | Creating a New Attribute | ![]() |