getImpl
Class: slreportgen.report.Reporter
Namespace: slreportgen.report
Syntax
impl = getImpl(reporter,report)
Description
returns the DOM object used to implement this reporter in the specified report. The
implementation object can help you debug report generation problems.impl
= getImpl(reporter
,report
)
Input Arguments
reporter
— Reporter
slreportgen.report.Reporter
object | object of subclass of slreportgen.report.Reporter
Reporter object, specified as an object of
slreportgen.report.Reporter
or subclass of
slreportgen.report.Reporter
.
Example: slreportgen.report.Diagram
for a diagram
reporter
report
— Report
slreportgen.report.Report
object
Report, specified as an slreportgen.report.Report
object.
Output Arguments
impl
— Implementation object
DOM object
Implementation object, returned as a DOM object. The DOM object is usually an mlreportgen.dom.DocumentPart
type object.
Examples
Get Reporter Implementation
Use the getImpl
method to obtain the DOM object used to create a diagram reporter. You can use the getImpl
method with any type of reporter.
load_system("vdp") import slreportgen.report.* import mlreportgen.report.* rpt = slreportgen.report.Report("output","pdf"); chapter = Chapter(); chapter.Title = "Diagram Reporter Example"; diagram = Diagram("vdp"); diagram.Snapshot.Caption = "The Van der Pol Equation"; diagram.SnapshotFormat = "svg"; diagram.Snapshot.Height = "4in"; getImpl(diagram,rpt)
ans = DocumentPart with properties: TemplateName: 'Diagram' TemplatePath: '/mathworks/devel/bat/filer/batfs2561-0/Bdoc24b.2679053/build/runnable/matlab/toolbox/shared/slreportgen/rpt/rpt/+slreportgen/+report/@Diagram/resources/templates/pdf/default.pdftx' Type: 'PDF' CurrentHoleId: '#end#' CurrentHoleType: 'Block' CurrentPageLayout: [] OpenStatus: 'open' Parent: [] Children: [1x3 mlreportgen.dom.Element] Tag: 'dom.LockedDocumentPart:52160' Id: '52160'
close(rpt);
Version History
Introduced in R2021a
See Also
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)