User`s guide
mlreportgen.dom.DOCXSubDoc class
12-109
Path of Word document targeted by this reference, represented by an
mlreportgen.dom.DOCXSubDoc object.
Properties
Id — ID for document element
string
A session-unique ID is generated as part of document element creation. You can specify
an ID to replace the generated ID.
Tag — Tag for document element
string
Tag for document element, specified as a string.
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.
Target — Path of document targeted by this reference
string
Path of document targeted by this reference, specified as a string. Use ASCII characters.
Use the following format for specifying a full path involving a mapped drive.
'file:///C:/UserPath/FileName.docx'
Methods
Method Purpose
clone
Use DOCXSubDoc.clone in a similar way
to how you use Paragraph.clone.
Clone this Word document reference.