User`s guide
mlreportgen.dom.Document.getOPCMainPart
11-41
mlreportgen.dom.Document.getOPCMainPart('MyDoc.htmx','html')
ans =
/root.html
Input Arguments
path — Path of document
string
If you use the path argument without the docType argument, include the .docx or
.htmx extension.
If you use both the path and docType arguments, getOPCMainPart appends an
extension of the appropriate type (.docx or .htmx).
docType — Type of document, document part, or template
'docx' | 'html'
Type of document, document part, or template, specified as a string.
Output Arguments
partOut — Path of main part of a package
string
The path to the main part of the document, document part, or template. The returned
path is relative to the root directory of the package, which is symbolized by a forward
slash (/).
More About
Tips
The getOPCMainPart method is a static method. Invoke it on the Document class,
rather than on an instance of the Document class or on a class derived from the
Document class.