Main Content

formatAsText

Class: mlreportgen.ppt.ProgressMessage
Package: mlreportgen.ppt

Format message as text

Description

example

textMessageOut = formatAsText(message) returns the message text formatted as text.

Examples

expand all

This example uses formatAsText to display the progress messages.

import mlreportgen.ppt.*;
pre = Presentation('myPresentation.pptx');
     
dispatcher = MessageDispatcher.getTheDispatcher;
     dispatcher.Filter.DebugMessagesPass = true;
l = addlistener(dispatcher,'Message', ...
      @(src,evtdata) disp(evtdata.Message.formatAsText));
     
dispatch(dispatcher,ErrorMessage('invalid slide',pre));
open(pre);
     
titleText = Text('This is a Title');
titleText.Style = {Bold};

replace(pre,'Title',titleText);
     
close(pre);
     
delete(l);

Input Arguments

expand all

The PPT progress message, specified as an mlreportgen.ppt.ProgressMessage object.

Output Arguments

expand all

PPT progress message formatted as text, returned as an mlreportgen.ppt.ProgressMessage object.

Introduced in R2015b