Class: mlreportgen.report.TitlePage
Package: mlreportgen.report
Create title page template
template = mlreportgen.report.TitlePage.createTemplate(templatePath,type)
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.
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;
mlreportgen.report.Report
| mlreportgen.report.Reporter
| mlreportgen.report.TitlePage
| mlreportgen.report.TitlePage.customizeReporter