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.getImagePrefix

Package: mlreportgen.dom

Get generated image name prefix

Syntax

imagePrefix = getImagePrefix(path,type)

Description

example

imagePrefix = getImagePrefix(path,type) gets the image name prefix of a document or template package located at the specified path and of the specified type (Microsoft® Word or HTML). The DOM interface uses the prefix when generating internal names of images appended to the document. This is a static method. Invoke it on the Document class.

Examples

collapse all

Suppose that the image name prefix of an HTML document named MyDoc.htmx is image. To get the image name prefix, enter:

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

image

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 generated image name prefix.

Introduced in R2014b

Was this topic helpful?