Main Content

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.TemplateDocumentPartCreate template for document part (Since R2023b)
mlreportgen.dom.TemplateHoleHole to append to template
mlreportgen.report.InlineContentFill inline content hole reporter
mlreportgen.report.BlockContent Fill block content hole reporter
mlreportgen.report.SectionTitleGenerate a section title
mlreportgen.report.TitleFill title hole reporter

Functions

zipTemplatePackage DOM HTML and PDF template in zip file
unzipTemplateUnzip zipped DOM template
zipDOCXTemplatePackage unzipped DOTX template into DOTX file
unzipDOCXTemplateUnzip zipped DOTX template file

Examples and How To

Microsoft Word Templates

HTML and PDF Templates

Concepts