MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES User's Guide Page 450

  • Download
  • Add to my manuals
  • Print
  • Page
    / 986
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 449
11 Functions – Alphabetical List
11-70
mlreportgen.dom.MessageDispatcher.dispatch
Package: mlreportgen.dom
Dispatch DOM status message
Syntax
dispatch(dispatcher,message)
Description
dispatch(dispatcher,message) dispatches a DOM status message.
Examples
Add and Dispatch a Progress Message
This example shows how to add a progress message to display when generating a report.
Add a dispatcher and listener to the report.
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.formatAsText));
open(d);
dispatch(dispatcher,ProgressMessage('starting chapter',d));
p = Paragraph('Chapter ');
p.Tag = 'chapter title';
append(d,p);
Page view 449
1 2 ... 445 446 447 448 449 450 451 452 453 454 455 ... 985 986

Comments to this Manuals

No comments