Main Content

close

Class: mlreportgen.dom.Document
Package: mlreportgen.dom

Close document

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

expand 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

expand all

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

Introduced in R2014b