User`s guide
12 Classes – Alphabetical List
12-108
mlreportgen.dom.DOCXSubDoc class
Package: mlreportgen.dom
Reference to external Microsoft Word document
Description
Reference to external Microsoft Word document.
Construction
docxSubDocObj = DOCXSubDoc() creates an empty document reference.
docxSubDocObj = DOCXSubDoc(path) creates a reference to a Word document at
the specified path. Appending this reference to a Word document (the master document)
inserts a link to the subdocument at the point at which the reference is appended.
Opening a master document in Word causes the link to the subdocument to be
displayed, instead of its content. To replace the link with the content, select Expand
Subdocuments from the Outlining tab of the View tab on the Word tool strip.
The rptview command expands subdocuments automatically when it opens a Word
document.
Input Arguments
path — Path of document targeted by this reference
string
Path of document targeted by this reference, specified as a string.
Output Arguments
docxSubDocObj — Reference to external Word document
mlreportgen.dom.DOCXSubDoc object