User`s guide
11 Functions – Alphabetical List
11-16
import mlreportgen.dom.*;
d = Document('mydoc','html');
ol = OrderedList({'first step' 'second step' 'last step'});
append(d,ol);
close(d);
rptview('mydoc','html');
Specify a Style for Appended Text
Use the Word Title style for the text.
import mlreportgen.dom.*;
d = Document('mydoc','docx');
append(d,'This Is a Title','Title');
close(d);
rptview('mydoc','docx');
Append a Cell Array as a Table
import mlreportgen.dom.*;
d = Document('mydoc');
table = append(d,{'row 1 - col 1' 'row 1 - col 2';...
'row 2 - col 1' 'row 2 - col 2'});
table.Style = {Border('double'),ColSep('solid'),RowSep('solid')};
close(d);
rptview('mydoc','html');
• “Add Content to a Report”
Input Arguments
docObj — Document to append content to
mlreportgen.dom.Document object
Document to append content to, specified as an mlreportgen.dom.Document object.
textContent — Text to append to document
string
Text to append to document.