Main Content

getPublisherReporter

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

Get title page publisher reporter

Syntax

reporter = getPublisherReporter(titlePage)

Description

reporter = getPublisherReporter(titlePage) returns a reporter that the TitlePage reporter (titlePage) uses to format the value specified by its Publisher property. You use getPublisherReporter to customize the publisher alignment, position, and appearance.

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 publisher reporter, returned as a reporter object.

Examples

expand all

  1. Create a template file named MyTitlePageTemplate.

  2. Customize the TitlePagePublisher style.

  3. Use getPublisherReporter and the TemplateSrc property to use your template.

    import mlreportgen.report.*
    rpt = Report();
    titlePage = TitlePage();
    titlePage.Publisher = "Report Publishing Company";
    titlePage.Publisher = getPublisherReporter(titlePage);
    titlePage.Publisher.TemplateSrc = "MyTitlePageTemplate";
    add(rpt,titlePage);
    

Version History

Introduced in R2017b