This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Package: mlreportgen.dom

Return path of main part of document output package


pathOut = getMainPartPath(docObj)



pathOut = getMainPartPath(docObj) returns the full path of the main part of the output package of the specified document. The main part is the file that contains the XML or HTML markup for a document.


collapse all

This code returns the path to the main part of an HTML document named MyReport. The main part is named index.html and it is in the root of the MyReport package. This example assumes that there is a reports folder on the S: drive.

d = mlreportgen.dom.Document('S:\reports\MyReport','html');

Input Arguments

collapse all

Document that contains the main part, specified as an mlreportgen.dom.Document object.

Output Arguments

collapse all

Path of the main part of document output package.

Introduced in R2014b