Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mlreportgen.dom.Document.getImageDirectory

Package: mlreportgen.dom

Get image folder of document

Syntax

imageDirectory = getImageDirectory(path,type)

Description

example

imageDirectory = getImageDirectory(path,type) gets the image folder of a document or template package located at the specified path and of the specified type (Microsoft® Word or HTML). This is a static method. Invoke it on the Document class.

Examples

collapse all

Suppose that the main image folder of an HTML document named MyDoc.htmtx resides in images under the root of the package. To get the path, enter:

mlreportgen.dom.Document.getImageDirectory('MyDoc','html');
ans =

/images

Input Arguments

collapse all

Path of the document or template package

Type document or template. For a Word document or template, specify 'docx'. For an HTML document or template, specify 'html'.

Output Arguments

collapse all

The path of the image folder for the package.

Introduced in R2014b

Was this topic helpful?