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

  • 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 703
12 Classes – Alphabetical List
12-210
Methods
Method Purpose
dispatch Dispatch a document generation status
message.
getTheDispatcher Get the message dispatcher.
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);
close(d);
rptview('test',doctype);
delete (l);
Check the progress messages in the MATLAB Command Window. The starting
chapter message appears, in addition to the predefined DOM progress messages.
“Display Report Generation Messages”
Vue de la page 703
1 2 ... 699 700 701 702 703 704 705 706 707 708 709 ... 985 986

Commentaires sur ces manuels

Pas de commentaire