User`s guide
Specify Tasks for a Component to Perform
7-15
For more information, enter help(rptgen.cfr_list) at the MATLAB command line.
Create Text
To create text, replace the ParaText property value with a text string:
out = execute(rptgen.cfr_paragraph(...
'ParaText', paraSrc,...
parentDoc);
For more information, enter help(rptgen.cfr_paragraph) at the command line.
Create Figures
To create figures, specify a figure in the FigureHandle property value.
figSrc = gcf;
out = execute(rptgen_hg.chg_fig_snap(...
'FigureHandle', figSrc,...
'Title', '',...
'isResizeFigure', 'manual',...
'PrintSize', [6 4],...
'PrintUnits', 'inches'),...
parentDoc);
For more information, enter help(rptgen_hg.chg_fig_snap) at the MATLAB
command line.
Run Child Components
The following code runs child components. The first line calls execute.m for child
components. The second line appends the results of running the child components to the
report:
childOut = thisComp.runChildren(parentDoc);
out = parentDoc.createDocumentFragment(out, childOut);
Change a Component's Outline String in the Report Explorer Hierarchy
To change the string used to describe the component in the Report Explorer hierarchy,
edit the getOutlineString MATLAB file. By default, getoutlinestring returns the
display name of the component. The getOutlineString command has the following
syntax: