Main Content

getImpl

Class:mlreportgen.report.Reporter
Package: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 ofmlreportgen.report.Reporteror an object of a subclass ofmlreportgen.report.Reporter.

Example:mlreportgen.report.TitlePagefor a title page reporter

Report, specified as a report object. To create thereportinput, usemlreportgen.report.Report.

Output Arguments

expand all

Implementation object, returned as a DOM object. The DOM object is usually anmlreportgen.dom.DocumentParttype object.

Examples

Get Reporter Implementation

This example shows how to usegetImplto obtain the DOM object used to create aTitlePagereporter. You can use thegetImplmethod with any type of reporter.

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

Introduced in R2017b