Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

getPublisherReporter

Class: mlreportgen.report.TitlePage
Package: mlreportgen.report

Get title page publisher reporter

Syntax

reporter = getPublisherReporter(tp)

Description

reporter = getPublisherReporter(tp) returns a reporter that the TitlePage reporter (tp) 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

Use Nondefault Title Page Publisher Style

Create a style for the publisher on your title page that differs from the default. Before you run this example, create a template file named MyTitlePageTemplate and customize its TitlePagePublisher style. Then, use getPublisherReporter and the TemplateSrc property to use your template.

import mlreportgen.report.*
report = Report();
tp = TitlePage();
tp.Publisher = 'Report Publishing Company';
tp.Publisher = getPublisherReporter(tp);
tp.Publisher.TemplateSrc = 'MyTitlePageTemplate';
add(report,tp);

Introduced in R2017b

Was this topic helpful?