Main Content

getAuthorReporter

Class: mlreportgen.report.TitlePage
Namespace: mlreportgen.report

Get title page author reporter

Syntax

reporter = getAuthorReporter(titlePage)

Description

reporter = getAuthorReporter(titlePage) returns a reporter that the TitlePage reporter (titlePage) uses to format the value specified by its Author property.

Input Arguments

expand all

Title page of the report, specified as a title page reporter object. To create the tp input, you use mlreportgen.report.TitlePage.

Output Arguments

expand all

Title page author reporter, returned as a reporter object.

Examples

expand all

  1. Create a template file named MyTitlePageTemplate.

  2. Customize the TitlePageAuthor style.

  3. Use the getAuthorReporter method and the TemplateSrc property to use your template.

    import mlreportgen.report.*
    rpt = Report();
    titlePage = TitlePage();
    titlePage.Author = "John Smith";
    titlePage.Author = getAuthorReporter(titlePage);
    titlePage.Author.TemplateSrc = "MyTitlePageTemplate";
    add(rpt,titlePage);
    

Version History

Introduced in R2017b