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

Package: mlreportgen.dom

Close document

Syntax

close(docObj)

Description

example

close(docObj) closes a document. Once a document is closed, you can no longer append content to it. Closing the document outputs any remaining content, such as remaining template text.

Examples

collapse all

Close the myReport document.

import mlreportgen.dom.*;
myReport = Document('mydoc','html');

append(myReport,Paragraph('This is an introduction'));

close(myReport);
rptview('mydoc','html');

Input Arguments

collapse all

Document to close, specified as an mlreportgen.dom.Document object.

Introduced in R2014b

Was this topic helpful?