User`s guide
mlreportgen.dom.HTML class
12-163
rpt = Document('MyRep1','docx');
html = HTML('<p><b>Hello</b> <i style="color:green">World</i></p>');
Append content to the HTML object and append the HTML object to the document.
append(html,'<p>This is <u>me</u> speaking</p>');
append(rpt,html);
Generate the Word report.
close(rpt);
rptview(rpt.OutputPath);
• “Append HTML Content to DOM Reports”
See Also
mlreportgen.dom.Document.addHTML | mlreportgen.dom.HTMLFile
More About
• “Appending HTML to DOM Reports”
• “HTML Code Requirements for DOM Reports”
External Web Sites
• www.w3schools.com/tags
• www.w3schools.com/cssref
Introduced in R2015a