User`s guide

12 Classes – Alphabetical List
12-82
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
TemplatePath — Path of the template used for this document element
string
The full path to the HTML or Word template to use for this document element.
Type — Type of output
string
The format for the output. Use one of these values:
html
docx
If you specify a template using the TemplatePath property, the value for Type must be
consistent with that type of template.
To generate a PDF report, create a Word report and use the rptview function with the
'pdf' argument to convert the Word report to PDF.
Methods
Use DocumentPart methods like you use the corresponding Document methods.
Method Purpose
addHTML
Use DocumentPart.addHTML in a similar
way to how you use Document.addHTML.
Append HTML string to document
addHTMLFile
Use DocumentPart.addHTMLFile
in a similar way to how you use
Document.addHTMLFile.
Append HTML file contents to document