create microsoft word templates
use one of these approaches to create a word template for generating a report.
use
mlreportgen.dom.document.createtemplate
to create a copy of the dom api default word template that you can then customize. for example,mlreportgen.dom.document.createtemplate('mytemplate','docx');
use an existing word template (for example, a report template for your organization) and customize the template to use with the dom api.
create a word template.
note
word for mac does not support creating holes for dom api templates. if you need to create a word template for generating word documents on a mac, you can:
create a template programmatically on the mac, using the dom api. see and .
use word on windows® to create your template and copy the template to your mac.
if you copy an existing template that is not based on the dom api default word template, apply any standard word styles such as title, heading 1, toc 1, list 1, and emphasis to an element in the template. you can apply the styles to placeholder content and then remove the content. that process creates instances of the standard styles in the template style sheet.
for information about how to create templates and to copy styles from one template to another, see .