User`s guide
mlreportgen.dom.Template class
12-321
TitleBarText — Title for HTML browser title bar
string
For HTML documents, this property specifies the text for the title bar of the browser.
Word documents ignore this property.
Set this property before opening the document for output.
Type — Type of output
'html' (default) | 'docx' | 'html-file'
Type of output, specified as 'html', 'docx' or 'html-file'.
• 'html'— HTML output HTML output as a zipped or unzipped folder containing the
HTML document text, image, style sheet, and JavaScript files
• 'docx'— Word output
• 'html-file'— HTML output consisting of a single file that contains the text, style
sheets, JavaScript®, and images for the report
If you specify a template using the TemplatePath property, the template must be
consistent with the type argument. You must specify a Word template (.dotx) for docx
output, an HTML template package (.htmtx) for HTML output, and a single-file HTML
template (.html) for html-file output.
Methods
Use the Template methods the same way you use the corresponding Document methods.
Method Purpose
append Append document element to the
document.
close Close this document.
createTemplate Create default template.
fill Fill document hole.
getCoreProperties Get core properties of document.
getImageDirectory Get image directory for the document.