在双显示器系统中,找出显示PowerPoint幻灯片放映在哪个显示器上 [英] In a dual-monitor system, finding out on which monitor a PowerPoint slideshow is displayed

查看:73
本文介绍了在双显示器系统中,找出显示PowerPoint幻灯片放映在哪个显示器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在多监视器系统上运行的Powerpoint 2007/2010中,我们可以选择要在其上显示幻灯片的监视器,方法是转到幻灯片->设置幻灯片->在...上显示幻灯片并选择

In Powerpoint 2007/2010 run on a multiple monitor system, we can select the monitor on which the slideshow will be shown by going to "Slide Show"-> "Set up slideShow" -> "Display SlideShow on" and selecting the desired monitor.

是否可以通过编程方式确定这些设置(例如使用VBA)?

Is it possible to programmatically determine these settings (e.g. using VBA)?

我该怎么办?实际需要的是显示幻灯片的监视器的像素分辨率。
我该怎么做?

What I actually need is the pixel-resolution of the monitor on which the slideshow is shown. How can I do that?

推荐答案

尝试一下:

With SlideShowWindows(1)
Debug.Print .Height
Debug.Print .Width
End With

这将为您带来得分。
到英寸有72点,所以:

That'll give you results in points. There are 72 points to the inch, so:

ResultInPixels =(ResultInPoints * WindowsDPI)/ 72

ResultInPixels = (ResultInPoints * WindowsDPI) / 72

通常WindowsDPI是96,但是您不能依靠它。对GetSystemMetrics的
API调用将为您提供当前值。

Typically WindowsDPI is 96 but you can't rely on that. API calls to GetSystemMetrics will give you the current value.

这篇关于在双显示器系统中,找出显示PowerPoint幻灯片放映在哪个显示器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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