Chapters and Sections

Generate and format chapters and sections

Classes

mlreportgen.report.Chapter Chapter reporter
mlreportgen.report.Section Section reporter
mlreportgen.dom.DOCXSectionPage format and layout for Microsoft Word document section

Topics

Create Chapters

Create report chapters

Create Page Layout Sections

Create report sections. Divide a Word or PDF report into sections with different layouts

Customize Chapters

Use custom templates and reporters to customize chapters.

Customize Chapter Page Headers

Customize page headers in Word and PDF reports by defining a custom reporter and modifying the chapter template.

What Is a Reporter?

Overview of reporters and how to use them, and Report and DOM APIs

Define New Types of Reporters

Create your own reporters

Subclass a Reporter Definition

Copy and edit a reporter based on a built-in reporter

Reporter Templates

Default Report API reporter templates for Word, PDF, and HTML output.