Main Content

formatAsText

Class: mlreportgen.ppt.ProgressMessage
Namespace: mlreportgen.ppt

Format message as text

Description

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

example

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.

Version History

Introduced in R2015b