PowerPoint Open “Record Slide Show” Dialog and detect if Presentation has a recording c# addin

帅比萌擦擦* 提交于 2019-12-24 03:07:40

问题


I am developing a PowerPoint AddIn and have been asked to add a reminder to the user to "Record Slide Show".

Can anyone help me find out how to programmatically open the "Record Slide Show" dialog box and also how to detect if the user has already added a recording to the slide show please?

Many thanks

Trevor


回答1:


Finally got this to work.

In the ribbon I have added the following:

public static void callRecordDialog()
{
    Globals.ThisAddIn.Application.CommandBars.ExecuteMso("RecordNarration");
}

then in the form I have called it like this...

private void btnVoiceOverYes_Click(object sender, EventArgs e)
{
    vCreateRibbon.callRecordDialog();
    this.Close();
}

took ages to find that!

hope it helps someone else

Trev



来源:https://stackoverflow.com/questions/17811237/powerpoint-open-record-slide-show-dialog-and-detect-if-presentation-has-a-reco

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!