User`s guide

mlreportgen.dom.HTMLFile class
12-169
rpt = Document('MyHTMLReport','docx');
Create the first HTMLFile object and append HTML markup and an HTML object to the
HTMLFile object.
path = 'myHTMLfile1.html';
htmlFile1 = HTMLFile(path);
append(htmlFile1,'<p>This is <u>HTML markup text</u></p>');
htmlObj = HTML('<p>This is an <b>HTML object</b></p>');
append(htmlFile1,htmlObj);
Create a second HTMLFile object.
htmlFile2 = HTMLFile('myHTMLFile2.html');
Append the second HTMLFile object to the first HTMLFile object, and append the first
HTMLFile object to the document.
append(htmlFile1,htmlFile2)
append(rpt,htmlFile1);
Generate the report.
close(rpt);
rptview(rpt.OutputPath);
“Append HTML File Contents to DOM Reports”
See Also
mlreportgen.dom.Document.addHTMLFile | mlreportgen.dom.HTML
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