本文整理自网络,侵删。
在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 indy 10tidftp中的directorylisting使用
Delphi qr /条形码扫描仪应用示例代码(使用zxing,tframestand)
Delphi windows xp下屏蔽ctrl_alt_del键的方法
更多相关阅读请进入《Delphi》频道 >>