User`s guide
11 Functions – Alphabetical List
11-26
mlreportgen.dom.Document.createTemplate
Package: mlreportgen.dom
Create DOM template
Syntax
createTemplate(path)
createTemplate(path,type)
Description
createTemplate(path) creates a DOM template in the specified location. The file
extension indicates whether to create a Microsoft Word template (.dotx) or an HTML
template (.htmx).
createTemplate(path,type) creates a template of the specified type at the specified
path. If the path does not have an extension, this method appends an extension of the
appropriate type ( 'htmx' for an HTML template, 'htmx' for a Word template, or
'html' for a single-file HTML template.
Examples
Create a Word Template
Create a Microsoft Word template in the current folder.
import mlreportgen.dom.*
Document.createTemplate('MyWordTemplate.dotx','docx');
• “Create a Microsoft Word Template”
• “Create an HTML Template”