getPublisherReporter
Class: mlreportgen.report.TitlePage
Package: mlreportgen.report
Get title page publisher reporter
Syntax
reporter = getPublisherReporter(tp)
Description
returns a reporter that the TitlePage reporter (reporter
= getPublisherReporter(tp
)tp
) uses to format
the value specified by its Publisher
property. You use
getPublisherReporter
to customize the publisher alignment,
position, and appearance.
Input Arguments
Output Arguments
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.* rpt = Report(); tp = TitlePage(); tp.Publisher = 'Report Publishing Company'; tp.Publisher = getPublisherReporter(tp); tp.Publisher.TemplateSrc = 'MyTitlePageTemplate'; add(rpt,tp);
Version History
Introduced in R2017b