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
Functions
| tmplview | Preview content and styles of source template (Since R2024b) | 
| zipTemplate | Package DOM HTML and PDF template in ZIP file | 
| unzipTemplate | Unzip zipped DOM template | 
| zipDOCXTemplate | Package unzipped DOTX template into DOTX file | 
| unzipDOCXTemplate | Unzip zipped DOTX template file | 
Topics
General Template Creation and Modification
- Open Template Files
 How to open template files.
- Reporter Templates
 Default Report API reporter templates for Word, PDF, and HTML output.
- Templates for DOM API Report Programs
 Templates provide default formatting for DOM API reports.
- Template Content and Styles Preview Structure
 Preview template content and styles withtmplview.
- Modifying Templates Programmatically
 Modify templates programmatically by creating or modifyingTemplateDocumentPartobjects.
Microsoft Word Templates
- Create Microsoft Word Templates
 Get an overview of ways to create a Word template for a report.
- Add Holes in Microsoft Word Templates
 Add holes for dynamic content to Word report templates.
- Modify Styles in Microsoft Word Templates
 Edit styles that control formatting for Word reports.
HTML and PDF Templates
- Create HTML and PDF Templates
 Get an overview of ways to create an HTML or PDF template for a report.
- Create 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 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
 Define document parts and document holes for PDF and HTML reports.