User`s guide
6 Template-Based Report Formatting
6-2
Report Conversion Templates
In this section...
“Templates for Report Conversion” on page 6-2
“Custom Templates” on page 6-2
“Custom Component Styles” on page 6-2
“Benefits of Using Templates” on page 6-2
Templates for Report Conversion
By selecting the Word (from template) output type, you can cause the Report
Generator to use a Microsoft Word template to convert the XML content for a report to a
Word or PDF document. Similarly, by selecting HTML (from template), you can cause
the Report Generator to use an HTML template to convert XML content to an HTML
document. The Report Generator uses the template to determine the layout and format of
the resulting document.
Custom Templates
The MATLAB Report Generator comes with default HTML and Word templates. You can
create customized versions of these templates to meet your report formatting and layout
requirements. You can use a custom template to generate a report. Specify the name of
the custom template in the Report Options dialog box, in the Template field.
Custom Component Styles
You can use styles defined in your custom template to format instances of Paragraph,
Text, and other report components. In the component properties dialog box, specify the
name of the style in the Style field.
Benefits of Using Templates
When you use a template to generate a report, report generation:
• Is faster.