User`s guide
clone
11-7
import mlreportgen.dom.*;
rpt = Document('MyReport','docx');
c = Container();
Color all of the text in this container red.
c.Style = {Color('red')};
Append content to the container and append the container to the report.
append(c,Paragraph('Hello'));
append(c,Table(magic(5)));
append(rpt,c);
Clone the container.
clonedC = clone(c);
Append the cloned container to the report.
append(rpt,clonedC);
Close and generate the report.
close(rpt);
rptview(rpt.OutputPath);
• “Create Object Containers”
• “Add Content as a Group”
See Also
mlreportgen.dom.Container | mlreportgen.dom.Group
Introduced in R2015a