tmplview
Syntax
Description
Use tmplview
to preview the content and styles of a source
template. The function generates a set of documents and places them in a directory based on
the name and type of the source template. The files have the same file type as the output of
an mlreportgen.dom.Document
object based on the source template. For an
overview of the output document structure and how the templates represent the template body,
template document part holes, and stylesheets, see Template Content and Styles Preview Structure.
tmplview(
generates preview
documents from the source template in templateObj
)templateObj
, and opens the main
template document in the appropriate viewer. You must close template objects by using the
close
method before generating the preview documents.
Note
Opening a Microsoft® Word document on a Linux® or Macintosh platform calls the soffice
command. To use the
soffice
command on a Linux machine, you must install Apache® OpenOffice® or LibreOffice®. On Macintosh, you must install Apache OpenOffice in the /Applications
folder.
tmplview(
generates documents
from the template at the path specified by templatePath
)templatePath
.
tmplview(
generates documents from the template specified by templateName
,format
)templateName
and in
the format, specified by format
.
Examples
Input Arguments
Limitations
tmplview
does not view Word templates in MATLAB Online.tmplview
is not supported in a MATLAB® web app.
Version History
Introduced in R2024b
See Also
mlreportgen.report.Report
| rptview
| mlreportgen.dom.Document
| docview