Delphi中操作PowerPoint幻灯片的示例代码


本文整理自网络,侵删。

 
在Delphi中处理PowerPoint幻灯片的示例代码。

使用单位

uses System.Win.ComObj;
声明变量

var
  PowerPoint: OLEVariant;
操作PowerPoint幻灯片

PowerPoint连接到
PowerPoint := CreateOleObject('PowerPoint.Application');

开始幻灯片放映
PowerPoint.ActivePresentation.SlideShowSettings.Run;

显示下一张幻灯片
PowerPoint.ActivePresentation.SlideShowWindow.View.Next;

显示上一张幻灯片
PowerPoint.ActivePresentation.SlideShowWindow.View.Previous;

显示第一张幻灯片
PowerPoint.ActivePresentation.SlideShowWindow.View.First;

显示最后一张幻灯片
PowerPoint.ActivePresentation.SlideShowWindow.View.Last;

相关阅读 >>

Delphi 模似键盘输入又一方法

Delphi xe 自己编辑xe2 vcl style(皮肤/skin)

Delphi 中拖动无边框窗口的5种方法

Delphi xe10 手机程序事件服务操作、退出键操作

Delphi检测本机的网络连接状态的三种方法

Delphi adoquery查询更改用户

Delphi 2009 泛型容器单元(generics.collections)[2]: tqueue<t>

Delphi删除文件

Delphi如何过xp的防火墙而不被拦截

Delphi idhttp登录网站教程代码

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...