Powerpoint 2007 - 插入动态数据

发布于 2024-09-19 07:40:11 字数 377 浏览 4 评论 0原文

所以我发现Powerpoint 2007没有书签功能。所以我不能只是将动态数据插入演示文稿中。另外,没有自动启动事件处理程序,但我找到了一种通过编辑 XML 数据来实现的方法。现在可以了,我有一个按预期运行的自定义事件处理程序。

现在,我尝试通过添加插入的标签来解决无书签功能。由于标签有名称,我可以为 Caption 属性分配一个值。该值可以是动态数据。 这确实有效,耶!但是,此演示文稿具有自定义字体,并且字体嵌入至关重要。现在我发现 PowerPoint 2007 似乎不支持在标签上嵌入字体。按钮和文本框可能也不是。即典型的 Visual Studio 控件。

还有其他方法可以解决这个问题吗?普通文本占位符没有 ID。 但我还能瞄准他们吗?这只是我试图放置动态数据的幻灯片设计页脚中的一些文本。

so I've found that Powerpoint 2007 has no bookmark functionality. So I can't just insert dynamic data into a presentation. Also, there are no autostart event handler, but I found a way of doing it by editing the XML data. This now works, I've got a custom event handler that is run as expected.

Now, I tried to solve the no bookmark functionality by adding a label insted. Since a label has a name I can assign the Caption property a value. And that value can be dynamic data.
And this actually works, yay! BUT, this presentation has a custom font and font embedding is crucial. And now I've found that PowerPoint 2007 doesn't look to support font embedding on labels. And probably not buttons and textboxes as well. That is, the typical visual studio controls.

Are there any other ways of fixing this? A normal text placeholder doesn't have an ID.
But can I target them anyway? It's just some text in the footer of a slide design that I'm trying to put dynamic data.

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

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

发布评论

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

评论(1

笑脸一如从前 2024-09-26 07:40:14

好的,我找到了如何在 PowerPoint 2007 中定位文本框。

ActivePresentation.SlideMaster.CustomLayouts.Item(11).Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1, Length:=25).Select
ActiveWindow.Selection.TextRange.Text = "New text that should be inserted"

现在的问题是如何自动运行它。新线程。

Ok, so I found out how to target textboxes in PowerPoint 2007.

ActivePresentation.SlideMaster.CustomLayouts.Item(11).Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1, Length:=25).Select
ActiveWindow.Selection.TextRange.Text = "New text that should be inserted"

The problem now is how to run this automatically. New thread for that.

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