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