MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Betriebsanweisung Seite 445

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 986
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 444
append
11-65
HTML object to append, specified as an mlreportgen.dom.HTML object.
htmlFileObjToAppendHTMLFile object to append
mlreportgen.dom.HTMLFile object
HTMLFile object to append, specified as an mlreportgen.dom.HTMLFile object.
Output Arguments
htmlFileObjOutHTMLFile object with appended content
an mlreportgen.dom.HTMLFile object
HTMLFileObj object with appended content, returned as an
mlreportgen.dom.HTMLFile object.
Examples
Append HTML Text to an HTML Object
This example assumes that there is an HTML file called myHTMLfile.html in the
MATLAB current folder.
Create an HTMLFile object from HTML text to use for a Microsoft Word report.
import mlreportgen.dom.*;
rpt = Document('HTMLToWordReport','docx');
htmlFileObj = HTML('<p><b>Hello</b> <i style="color:green">World</i></p>');
Append content to the HTMLFile object and append the HTMLFile object to the
document.
append(htmlFileObj,'<p>This is <u>me</u> speaking</p>');
append(rpt,htmlFileObj);
Generate the report.
close(rpt);
rptview(rpt.OutputPath);
“Append HTML File Contents to DOM Reports”
Seitenansicht 444
1 2 ... 440 441 442 443 444 445 446 447 448 449 450 ... 985 986

Kommentare zu diesen Handbüchern

Keine Kommentare