getSubtitleReporter
Class: mlreportgen.report.TitlePage
Namespace: mlreportgen.report
Get title page subtitle reporter
Syntax
reporter = getSubtitleReporter(tp)
Description
returns a reporter that the reporter
= getSubtitleReporter(tp
)TitlePage
reporter (tp
)
uses to format the value specified by its Subtitle
property. You
use getSubtitleReporter
to customize the subtitle alignment,
position, and appearance.
Input Arguments
Output Arguments
Examples
Use Nondefault Title Page Subtitle
Create a style for your title page subtitle that differs from the default. Before
you run this example, create a template file named
MyTitlePageTemplate
and customize its
SubtitlePageTitle
style. Then, use
getSubtitleReporter
and the TemplateSrc
property to use your
template.
import mlreportgen.report.* rpt = Report(); tp = TitlePage(); tp.Subtitle = 'My Report Subtitle'; tp.Subtitle = getSubtitleReporter(tp); tp.Subtitle.TemplateSrc = 'MyTitlePageTemplate'; add(rpt,tp);
Version History
Introduced in R2017b