Main Content
Chapters and Sections
Generate and format chapters and sections
Create and format chapters and sections in a document.
Classes
mlreportgen.report.Chapter | Chapter reporter |
mlreportgen.report.Section | Section reporter |
mlreportgen.dom.DOCXSection | (To be removed) Page 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 Are Reporters?
Get an overview of reporters and how to use them, and an overview of Report and DOM APIs.
- Define New Reporters
Create a custom reporter based on
mlreportgen.report.Reporter
. - Subclass Reporter Definitions
Copy and edit a reporter based on a built-in reporter.
- Reporter Templates
Default Report API reporter templates for Word, PDF, and HTML output.