本文整理自网络,侵删。
在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 xe 自己编辑xe2 vcl style(皮肤/skin)
Delphi 2009 泛型容器单元(generics.collections)[2]: tqueue<t>
更多相关阅读请进入《Delphi》频道 >>