Main Content

open

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

Open document

Description

open(docObj) opens a document for appending content.

example

Examples

expand all

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

open(myReport);

Input Arguments

expand all

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

Tips

  • After you open a document, you can no longer change its generated document type or the template.

  • The append method for a document opens a document if the document is not already opened. Therefore, you rarely need to use the open method.

Version History

Introduced in R2014b