MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Uživatelská příručka Strana 663

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 986
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 662
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
Zobrazit stránku 662
1 2 ... 658 659 660 661 662 663 664 665 666 667 668 ... 985 986

Komentáře k této Příručce

Žádné komentáře