This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Templates

Use Word, HTML, and PDF templates to format reports

Templates specify the default formatting and fixed content for a report. Templates can also contain holes (blanks) that your report program can fill with dynamic content. Report viewers, such as Microsoft® Word or Adobe® Acrobat®, apply the format specifications to format the report.

Classes

mlreportgen.dom.TemplateCreate report template object
mlreportgen.dom.TemplateHoleHole to append to template
mlreportgen.report.InlineContentFill inline content hole reporter
mlreportgen.report.BlockContent Fill block content hole reporter
mlreportgen.report.SectionTitleFill section title hole reporter
mlreportgen.report.TitleFill title hole reporter

Functions

zipTemplatePackage DOM HTML and PDF template in zip file
unzipTemplateUnzip zipped DOM template

Examples and How To

Microsoft Word Templates

Create a Microsoft Word Template

Overview of ways to create a Word template for a report

Add Holes in a Microsoft Word Template

Add holes for generated content to a Word report template

Modify Styles in a Microsoft Word Template

Edit styles that control formatting for a Word report

HTML and PDF Templates

Create an HTML or PDF Template

Overview of ways to create an HTML or PDF template for a report

Create an HTML Document Part Template Library

Create HTML document part templates to define fixed content and holes for dynamic content

Modify Styles in HTML Templates

Edit styles that control formatting in HTML reports

Create a PDF Document Part Template Library

Create PDF document part templates to define fixed content and holes for dynamic content

Modify Styles in PDF Templates

Edit styles that control formatting in PDF reports

Add Holes in HTML and PDF Templates

Add holes for generated content to an HTML or PDF template

PDF and HTML Document Parts and Holes

Example of defining document parts and document holes for PDF and HTML reports

Concepts

Open a Template File

How to open a template file

Reporter Templates

Default Report API reporter templates for Word, PDF, and HTML output

Templates for DOM API Report Programs

Templates that provide default formatting for DOM API reports

Open a Template File

How to open a template file