mlreportgen.report.TitlePage.createTemplate
Class: mlreportgen.report.TitlePage
Package: mlreportgen.report
Create title page template
Syntax
template = mlreportgen.report.TitlePage.createTemplate(templatePath,type)
Description
creates a copy of the default title page reporter template specified by
template
= mlreportgen.report.TitlePage.createTemplate(templatePath
,type
)type
at the location specified by
templatePath
. You can use the copied template as a starting
point to design a custom title page template for your report.
Input Arguments
Output Arguments
Examples
Create Title Page Template
Before you run this example, create a copy of the default HTML
TitlePage
template in the mytemplates
folder.
Name the copied template myTitlePg.htmtx
. Edit the template as
desired. To use the new template for the title page, assign its path to the
TitlePage
TemplateSrc
property.
import mlreportgen.report.* rpt = Report('My Report','html'); tp = TitlePage(); tp.Title = 'Data Summary'; template = TitlePage.createTemplate('mytemplates\myTitlePg','html'); tp.TemplateSrc = template;
Version History
Introduced in R2017b