Documentation
Class: mlreportgen.ppt.MessageDispatcher Package: mlreportgen.ppt
Dispatch PPT status message
dispatch(dispatcher,message)
example
dispatch(dispatcher,message) dispatches a PPT status message.
dispatcher
message
expand all
This example shows how to add a progress message to display when generating a report.
Add a dispatcher and listener to the presentation.
import mlreportgen.ppt.*; pre = Presentation('myPresentation.pptx'); dispatcher = MessageDispatcher.getTheDispatcher; 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);
Check the progress messages in the MATLAB® Command Window. The starting chapter message appears, in addition to the predefined PPT progress messages.
starting chapter
mlreportgen.ppt.MessageDispatcher
PPT message dispatcher, specified as an mlreportgen.ppt.MessageDispatcher object.
Message to dispatch, specified as a PPT message object. Use one of these types of PPT message objects:
mlreportgen.ppt.ProgressMessage
mlreportgen.ppt.WarningMessage
mlreportgen.ppt.ErrorMessage
mlreportgen.ppt.DebugMessage
getTheDispatcher | mlreportgen.ppt.MessageEventData | mlreportgen.ppt.MessageFilter
getTheDispatcher
mlreportgen.ppt.MessageEventData
mlreportgen.ppt.MessageFilter
MATLAB のコマンドを実行するリンクがクリックされました。
このリンクは、Web ブラウザーでは動作しません。MATLAB コマンド ウィンドウに以下を入力すると、このコマンドを実行できます。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office
無料評価版のダウンロード