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

expand all

mlreportgen.dom.TemplateCreate report template object
mlreportgen.dom.TemplateDocumentPartCreate template for document part (Since R2023b)
mlreportgen.dom.TemplateHoleHole to append to template
mlreportgen.dom.TemplateTextMarkup text from a document 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
mlreportgen.dom.TemplateStylesheetMATLAB representation of template style sheet (Since R2024a)
mlreportgen.dom.TemplateDOCXStyleParse existing styles within DOCX template (Since R2024a)
mlreportgen.dom.TemplateHTMLStyleParse existing styles within HTML template (Since R2024a)
mlreportgen.dom.TemplatePDFStyleParse existing styles within PDF template (Since R2024a)
mlreportgen.dom.TemplateTextStyleStyle text content within template (Since R2024a)
mlreportgen.dom.TemplateParagraphStyleStyle paragraph content within template (Since R2024a)
mlreportgen.dom.TemplateLinkedStyleStyle linked content within template (Since R2024a)
mlreportgen.dom.TemplateTableStyleStyle table content within template (Since R2024a)
mlreportgen.dom.TemplateOrderedListStyleStyle ordered lists within template (Since R2024a)
mlreportgen.dom.TemplateOrderedListLevelStyleStyle formats for a specific list level in a TemplateOrderedListStyle object (Since R2024a)
mlreportgen.dom.TemplateUnorderedListStyleStyle unordered lists within template (Since R2024a)
mlreportgen.dom.TemplateUnorderedListLevelStyleStyle formats for a specific list level in a TemplateUnorderedListStyle object (Since R2024a)

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

Concepts

Examples and How To

Microsoft Word Templates

HTML and PDF Templates