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

  • 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 464
mlreportgen.dom.ProgressMessage.formatAsHTML
11-85
mlreportgen.dom.ProgressMessage.formatAsHTML
Package: mlreportgen.dom
Wrap message in HTML tags
Syntax
htmlMessageOut = formatAsHTML(message)
Description
htmlMessageOut = formatAsHTML(message) returns the message text formatted
with HTML tags.
Examples
Format a Message as HTML
This example uses formatAsHTML with the Web command to display the progress
messages.
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
d.Tag = 'My report';
dispatcher = MessageDispatcher.getTheDispatcher;
l = addlistener(dispatcher,'Message', ...
@(src, evtdata) disp(evtdata.Message.formatAsHTML));
open(d);
dispatch(dispatcher, ProgressMessage('starting chapter',d));
p = Paragraph('Chapter ');
p.Tag = 'chapter title';
p.Style = { CounterInc('chapter'),...
CounterReset('table'),WhiteSpace('pre') };
append(p,AutoNumber('chapter'));
Vue de la page 464
1 2 ... 460 461 462 463 464 465 466 467 468 469 470 ... 985 986

Commentaires sur ces manuels

Pas de commentaire