Class: mlreportgen.dom.Document Package: mlreportgen.dom
Close document
close(docObj)
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.
docObj
expand all
Close the myReport document.
myReport
import mlreportgen.dom.*; myReport = Document('mydoc','html'); append(myReport,Paragraph('This is an introduction')); close(myReport); rptview('mydoc','html');
mlreportgen.dom.Document
Document to close, specified as an mlreportgen.dom.Document object.
mlreportgen.dom.Document | open
open
You have a modified version of this example. Do you want to open this example with your edits?