Main Content

append

Class: mlreportgen.dom.Container
Namespace: mlreportgen.dom

Append DOM object to container

Syntax

domObjOut = append(containerObj,domObj)

Description

domObjOut = append(containerObj,domObj) appends the DOM object to the specified container object.

Input Arguments

Examples

expand all

Create a container object.

import mlreportgen.dom.*;
rpt = Document("MyReport","docx");
 
c = Container();

Append content to the container and append the container to the report.

append(c,Paragraph("Hello"));
append(c,Table(magic(5)));
append(rpt,c);

Close and generate the report.

close(rpt);      
rptview(rpt.OutputPath);

Version History

Introduced in R2015a