读书人

怎么用VB调用powerpoint文件

发布时间: 2012-01-21 21:31:43 作者: rapoo

如何用VB调用powerpoint文件
想用在程序在调用一个powerpoint文件怎么用呀

[解决办法]
可以这样:
Private Declare Function ShellExecute Lib "shell32.dll " Alias "ShellExecuteA " (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Command1_Click()
ShellExecute Me.hwnd, "open ", "d:\nn\aa.ppt ", vbNullString, vbNullString, 1

End Sub

读书人网 >VB

热点推荐