Main Content


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.


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 inline content hole reporter Fill block content hole reporter a section title 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)


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