open

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

Open document

Description

example

open(docObj) opens a document for appending content.

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.

Introduced in R2014b