メインコンテンツ

getPubDateReporter

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

Get title page publication date reporter

Syntax

reporter = getPubDateReporter(titlePage)

Description

reporter = getPubDateReporter(titlePage) returns a reporter that the TitlePage reporter (titlePage) uses to format the value specified by the PubDate property. You use getPubDateReporter to customize the publication date alignment, position, and appearance of the publication date.

.

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

Examples

expand all

  1. Create a template file named MyTitlePageTemplate.

  2. Customize the TitlePagePubDate style.

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

    import mlreportgen.report.*
    rpt = Report();
    titlePage = TitlePage();
    titlePage.PubDate = "June 1 2017";
    titlePage.PubDate = getPubDateReporter(titlePage);
    titlePage.PubDate.TemplateSrc = "MyTitlePageTemplate";
    add(rpt,titlePage);
    

Version History

Introduced in R2017b