getImpl
Class: mlreportgen.report.Reporter
Namespace: mlreportgen.report
Get implementation of reporter
Syntax
impl = getImpl(reporter,report)
Description
Input Arguments
Output Arguments
Examples
Tips
Use
getImplto get information about the implementation of a reporter and use it elsewhere, such as an inline equation. See Create an Inline Equation in a Report.The
appendmethod that you can use onmlreportgen.report.Reportobjects usesgetImplto append the reporter content to the DOM document object that implements the report. You can therefore usegetImplto append reporter content to other types of DOM objects.If
getImplreturns amlreportgen.dom.DocumentPartobject, the method fills the holes defined in themlreportgen.dom.DocumentPartobject source template with content in the properties of the reporter that match the hole names. If the property does not exist,getImplfills the hole without adding content to it. For example, if a reportermyReporterspecifies a template with a holeMyTemplateHole,getImplfills the hole with content in theMyTemplateHoleproperty of the reporter, if the property exists. If you do not wantgetImplto fill the holes, create a custom reporter and override this method to return an object that you can add to the DOM document, such as a string or paragraph. See Define New Custom Reporters and Modify Inherited Methods.To retrieve the implementation object while also maintaining the ability to add content to the reporter, create a clone of the reporter and use
getImplon the clone. To see an example that uses this method, see Create a Report with Pages in Portrait and Landscape Orientation.
Version History
Introduced in R2017b