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.SectionTitleGenerate a section title
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 dynamic 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

Define 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 provide default formatting for DOM API reports.

Open a Template File

How to open a template file.