以编程方式访问录制的叙述

时间:2016-03-20 19:31:01

标签: c# interop powerpoint

PowerPoint有一个名为"记录旁白"的功能。这会记录用户按下按钮之间的延迟,然后使用它来显示自动幻灯片显示,根据这些按钮点击显示触发鼠标点击的动画。

所以,我想以编程方式添加这些叙述。但在Microsoft::Office::Interop::PowerPoint我没有找到任何有用的数据。如何以编程方式访问这些叙述?

1 个答案:

答案 0 :(得分:0)

计时记录在名为TIMING

的幻灯片级别标签中

标签值可能类似于| 7 | 5.8 | 5.6

大致意思是,开始,等待7秒,移至下一次点击,等待5.8秒......等等。

要查看例如幻灯片1的TIMING标记内容,即:

 <script type="text/javascript">       

        var counter = 0;

        function moreFields() {
             var date = document.getElementById("myDate").value;
            counter++;
            var newFields = document.getElementById("readroot").cloneNode(true);
            newFields.id = '';
            newFields.style.display = 'block';
            var newField = newFields.childNodes;
            for (var i=0;i<newField.length;i++) {
                var theName = newField[i].name;
                if (theName)
                    newField[i].name = theName + counter;
            }
            var insertHere = document.getElementById("writeroot");
            insertHere.parentNode.insertBefore(newFields,insertHere);
            document.getElementById("myDate").stepUp(1);

        }

        window.onload = moreFields;

    </script>

<body>
    <div id="readroot" style="display: none">

        <input type="button" value="Remove Date"
               onclick="this.parentNode.parentNode.removeChild(this.parentNode);" /><br /><br />

        <input type="date" id="myDate" value="">

        <select name="rankingsel">
            <option>School Day</option>
            <option value="day1">Day 1</option>
            <option value="day2">Day 2</option>
            <option value="day3">Day 3</option>
            <option value="day4">Day 4</option>
            <option value="day5">Day 5</option>
            <option value="closed">School Closed</option>
        </select><br /><br />



    </div>

    <form method="post" action="/cgi-bin/show_params.cgi">

        <span id="writeroot"></span>

        <input type="button" onclick="moreFields()" value="Add Another Date" />
        <input type="submit" value="Send form" />

    </form>
</body>