MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guide de l'utilisateur Page 445

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 986
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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”
Vue de la page 444
1 2 ... 440 441 442 443 444 445 446 447 448 449 450 ... 985 986

Commentaires sur ces manuels

Pas de commentaire