 |
Ppview32支持从命令行指定要播放的文件,所以简单的办法如下(这个例子中ppt和pptview.exe都在VB程序的目录下):
Shell App.Path & "pptview.exe " & App.Path & "\myslides.ppt"
Ppview32还支持更复杂的Automation方式可以更好地控制播放地效果,不过稍微复杂一些。参考:微软的Knowledge Base的文章:“Q265385 INFO: Automation of PowerPoint 97 and PowerPoint 2000 Viewers”。
此问题由李海回答。
附加关键字:编程, 源程序, programming, source code, Visual Basic, VB, Office开发, office, ms office, office xp, office 97。
|