mlreportgen.dom.DOCXSubDoc Class
Namespace: mlreportgen.dom
Reference to external Microsoft Word document
Description
Use an object of the mlreportgen.dom.DOCXSubDoc
class to create a
reference to an external Microsoft® Word document in a Word, PDF, or HTML document. A link to the referenced
document (also known as a subdocument) is inserted in the parent
document where you append the DOCXSubDoc
object.
When you initially open the parent document in Word, Word displays the link to the
subdocument instead of the content. To replace the link with the content, select
Expand Subdocuments from the
Outlining tab of the View tab on the Word
toolstrip. The rptview
command expands subdocuments when it opens a
Word document. You can also use docview
to expand and unlink
subdocuments.
The mlreportgen.dom.DOCXSubDoc
class is a handle
class.
Class Attributes
ConstructOnLoad | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Creation
Properties
Methods
Examples
Alternative Functionality
mlreportgen.dom.EmbeddedObject
To insert documents other than Word documents into another document, use objects
of the mlreportgen.dom.EmbeddedObject
class.
To insert Word documents into another document, you can use objects of the
DOCXSubDoc
or EmbeddedObject
class. To decide
which class to use, consider these guidelines:
Use
DOCXSubDoc
objects if you want the parent document to display links to subdocuments initially. You might want to display links initially when the parent document links to a set of subdocuments in an outline view. UseEmbeddedObject
objects if you want the parent document to display the subdocument contents regardless of whether you open the parent document in Word or by usingrptview
.Use
EmbeddedObject
objects if you want to move the parent document without moving the subdocuments.
Version History
Introduced in R2014b