User`s guide

mlreportgen.dom.DOCXPageHeader class
12-89
mlreportgen.dom.DOCXPageHeader class
Package: mlreportgen.dom
Page header definition for Microsoft Word document
Description
Add a header to the first page of a section or to odd pages, even pages, or both.
Construction
docxPageHeaderObj = DOCXPageHeader() creates an empty page header based on
the default Word template.
headerObj = DOCXPageHeader(pageType,templatePath) creates an empty page
header for the specified type of page, based on the specified master template.
docxPageHeaderObj =
DOCXPageHeader(pageType,templatePath,embeddedTemplateName) creates
an empty page header for the specified type of page, based on the specified embedded
template in the specified master template.
docxPageHeaderObj =
DOCXPageHeader(pageType,templateSrc,embeddedTemplateName) creates
an empty page header for the specified type of page, based on the specified embedded
template in the template used by the specified document or document part (templateSrc).
Input Arguments
pageType — Type of pages on which header appears
[] (default) | string
Specify the type of page on which the header appears.
default— header appears on odd pages in a section and the first page, if there are
no page headers defined with pageType set to first
first— header appears only on the first page of a section
even— header appears even paged in a section