Main Content

close

Class: mlreportgen.dom.Document
Namespace: mlreportgen.dom

Close document

Description

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.

example

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.

Version History

Introduced in R2014b