PowerPoint 幻灯片仅显示幻灯片的一部分

发布于 2024-12-13 14:15:17 字数 1050 浏览 5 评论 0原文

我在使用 PowerPoint 2010 时遇到一个奇怪的问题:

我使用以下代码从幻灯片中删除所有动画。这是在幻灯片放映期间完成的:

  for (int i = slide.TimeLine.InteractiveSequences.Count; i >= 1; i--)
            {
                Sequence sequence = slide.TimeLine.InteractiveSequences[i];
                for (int x = sequence.Count; x >= 1; x--)
                {
                    sequence[x].Delete();
                }
            }

            for (int i = slide.TimeLine.MainSequence.Count; i >= 1; i--)
            {                                        
                slide.TimeLine.MainSequence[i].Delete();                    
            }    
        }

在一张幻灯片中,有一个图片和一个文本框,并且都使用 MainSequence 动画,在删除动画后,该幻灯片将出现在幻灯片放映中,只有文本而不是图片。

在另一张幻灯片中,删除动画后,文本框和图片都会显示,但只绘制了一半 - 看起来真的好像有人拿了一块橡皮擦掉了底部部分!很奇怪。

这是一个示例屏幕截图。请注意幻灯片右侧的图像,其下半部分已被擦除: 在此处输入图像描述

使用 View.GotoSlide 重绘幻灯片并不能解决此问题。在删除动画之前/之后向幻灯片添加额外的形状也没有帮助。

当我为这些奇怪的幻灯片创建 PNG 缩略图时,缩略图看起来很好并且包含所有形状。

有什么想法吗?

I have a weird problem with PowerPoint 2010:

I use the following code to remove all animations from a slide. This is done during slideshow:

  for (int i = slide.TimeLine.InteractiveSequences.Count; i >= 1; i--)
            {
                Sequence sequence = slide.TimeLine.InteractiveSequences[i];
                for (int x = sequence.Count; x >= 1; x--)
                {
                    sequence[x].Delete();
                }
            }

            for (int i = slide.TimeLine.MainSequence.Count; i >= 1; i--)
            {                                        
                slide.TimeLine.MainSequence[i].Delete();                    
            }    
        }

In one slide, which has a Picture and a TextBox and both use the MainSequence animation, after the animations are removed, the Slide appears in the slideshow with only the text but not the picture.

In another slide, after animations are removed, the textbox and the picture are both shown, but are drawn only half down - it really looks as if somebody took a rubber and wiped the bottom parts out! Very weird.

Here's an example screenshot. Notice the image on the right of the slide, which has its bottom half wiped off:
enter image description here

Redrawing the slides by using View.GotoSlide does not fix this. Adding an extra shape to the slides before/after removing the animations, does not help either.

When I create PNG thumbnails of these weird slides, the thumbnails look fine and contain all the shapes.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我也只是我 2024-12-20 14:15:17

这种类型的重绘错误以前曾出现过。更改形状(或在本例中为动画)的可见性后,尝试将它们从幻灯片上移开,然后再次移回幻灯片上。这在某些情况下似乎有帮助。

This type of redraw bug has come up before. After changing the visibility of shapes (or in this case, the animations) try moving them off the slide then back on again. That seems to help in some case.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文