Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Report Format Basics

Specify formatting for report content

You can specify formatting programmatically and by using Microsoft® Word, PDF, and HTML template formatting styles. See Report Formatting Approaches.

Functions

mlreportgen.report.Report.createTemplateCreate report template
mlreportgen.dom.Document.createTemplateCreate DOM template file
mlreportgen.dom.Container.cloneCopy container object
mlreportgen.dom.Container.appendAppend DOM object to container

Classes

mlreportgen.report.Report Superclass for report creation
mlreportgen.report.ReportLayout Page layout of report
mlreportgen.report.ReporterLayout Layout for reporter
mlreportgen.dom.ContainerContainer of document objects

Examples and How To

Use Style Sheet Styles

A style is a collection of formats that define the appearance of a document object, such as a paragraph, table, or list.

Create Object Containers

You can use an mlreportgen.dom.Container object to create an HTML container object, such as a div, section, or article, not otherwise supported by the DOM API and to simulate HTML format inheritance in Word output.

Concepts

Report Formatting Approaches

You can format your report using style sheets, format objects, format properties, or any combination of these approaches.

Format Inheritance

The DOM API allows you to use template-based styles and format object-based styles (or equivalent format properties) to specify the appearance of an object.

Templates for DOM API Report Programs

Templates that provide default formatting for DOM API reports

Was this topic helpful?