Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mlreportgen.ppt.ProgressMessage.formatAsText

Package: mlreportgen.ppt

Format message as text

Syntax

textMessageOut = formatAsText(message)

Description

example

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

Examples

collapse 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

collapse all

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

Output Arguments

collapse all

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

Introduced in R2015b

Was this topic helpful?