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.formatAsHTML

Package: mlreportgen.ppt

Wrap message in HTML tags

Syntax

htmlMessageOut = formatAsHTML(message)

Description

example

htmlMessageOut = formatAsHTML(message) returns the message text formatted with HTML tags.

Examples

collapse all

This example uses formatAsHTML to display the progress messages.

import mlreportgen.ppt.*;
pre = Presentation('myPresentation.pptx');
     
dispatcher = MessageDispatcher.getTheDispatcher;
l = addlistener(dispatcher,'Message', ...
      @(src, evtdata) disp(evtdata.Message.formatAsHTML));
     
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

Progress message, specified as an mlreportgen.ppt.ProgressMessage object.

Output Arguments

collapse all

Progress message with HTML tagging, returned as an mlreportgen.ppt.ProgressMessage object.

Introduced in R2015b

Was this topic helpful?