User`s guide

mlreportgen.dom.Document.close
11-21
mlreportgen.dom.Document.close
Package: mlreportgen.dom
Close document
Syntax
close(docObj)
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.
Examples
Close a Document
Close the myReport document.
import mlreportgen.dom.*;
myReport = Document('mydoc','html');
append(myReport,Paragraph('This is an introduction'));
close(myReport);
rptview('mydoc','html');
“Add Content to a Report”
Input Arguments
docObj — Document to close
mlreportgen.dom.Document object