Main Content

getImpl

Class: mlreportgen.report.Reporter
Namespace: mlreportgen.report

Get implementation of reporter

Syntax

impl = getImpl(reporter,report)

Description

impl = getImpl(reporter,report) returns the DOM object used to implement this reporter in the specified report. The implementation object can help you debug report generation problems.

Input Arguments

expand all

Reporter object, specified as an object of mlreportgen.report.Reporter or an object of a subclass of mlreportgen.report.Reporter.

Example: mlreportgen.report.TitlePage for a title page reporter

Report, specified as a report object. To create the report input, use mlreportgen.report.Report.

Output Arguments

expand all

Implementation object, returned as a DOM object. The DOM object is usually an mlreportgen.dom.DocumentPart type object.

Examples

Get Reporter Implementation

This example shows how to use getImpl to obtain the DOM object used to create a TitlePage reporter. You can use the getImpl method with any type of reporter.

import mlreportgen.report.*
rpt = Report('My Report');
tp = TitlePage;
tp.Title = 'Data Summary';
impl = getImpl(tp,rpt)

Version History

Introduced in R2017b