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 用nethttpclient执行post操作遇到的问题

Delphi 生成guid算法的单元

Delphi 根据快捷方式路径取源文件地址

Delphi 调用批处理

Delphi vclunzip组件解压缩文件用法

Delphi 自带的 base64 编解码函数

Delphi Delphi中点击dbgrid某一行获得其详细数据方法

Delphi(更改图标)

Delphi 检查字符串是不是 包含 中文和获取中文字符个数

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



打赏

取消

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

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

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

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

评论

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