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

  • 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 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'));
Zobrazit stránku 464
1 2 ... 460 461 462 463 464 465 466 467 468 469 470 ... 985 986

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

Žádné komentáře