MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guía de usuario Pagina 465

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 986
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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'));
Vista de pagina 464
1 2 ... 460 461 462 463 464 465 466 467 468 469 470 ... 985 986

Comentarios a estos manuales

Sin comentarios