PowerPoint 2010中多个实例 [英] Powerpoint 2010 Multiple Instances

查看:161
本文介绍了PowerPoint 2010中多个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里已经看到很多帖子,但没有人似乎直接回答这个问题。我想控制在第二个监视器上运行的Powerpoint的两个实例。

I have seen numerous posts on this subject here, but none seem to answer this issue directly. I want to control two instances of Powerpoint running on a second monitor.

理想的解决方案如下:

PowerPoint.Application PPTViewer1 = new PowerPoint.Application();
PowerPoint.Application PPTViewer2 = new PowerPoint.Application();

我可以手动完成,只需启动两个PowerPoint实例,加载演示文稿,然后启动幻灯片放映从每个实例。

I can do this manually, simply by starting two instances of PowerPoint, loading the presentation, and starting the slide show from each instance. I can toggle back and forth between the two slide shows manually, with each being brought to the front as expected.

所以...我如何使用VSTO来编程?和C#??像我之前的其他人一样,我看到Interop.PowerPoint接口将仅创建单个实例。如果不是这样,那么我可以轻松实现我想要的结果。

So... how do I do this programatically using VSTO and C#?? Like others before me, I see that the Interop.PowerPoint interface will create only the single instance. If that were not the case, then I could achieve the results I am looking for easily enough.

此外,我不是为这个任务寻找第三方组件。

Additionally, I am not looking for a third party component for this task.

感谢任何帮助。

提前感谢。

推荐答案

它可能看起来你运行的Powerpoint的多个实例,但你不是。它只允许自身的一个实例。如果在任务列表中看到Powerpnt.exe的两个实例,有时会发生,这意味着出现了问题,并在内存中留下了一个僵尸。

It may appear that you're running multiple instances of Powerpoint, but you're not. It only allows one instance of itself. If you see two instances of Powerpnt.exe in the task list, as sometimes happens, it means that something's gone wrong and left a zombie in memory.

这篇关于PowerPoint 2010中多个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆