VB如何调用powerpoint的另存为把PPT转化成其它格式?
调用powerpoint的另存为把PPT转化成其它格式?
手动操作!打开PPT,点文件——另存为——选择格式(如jpg)——点保存等。。。
——————————————
附:VB.net源码:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a As PowerPoint.Application = New PowerPoint.Application
'a.Visible = Microsoft.Office.Core.MsoTriState.msoTrue
a.Activate()
a.CommandBars(1).Visible = False
a.Presentations.Open("C:\Documents and Settings\widebright\桌面\dddddd.ppt", Microsoft.Office.Core.MsoTriState.msoTrue)
Dim i As Integer
i = 1
a.Presentations(1).Slides(i).Export("C:\Documents and Settings\widebright\桌面\新建文件夹\1.jpg","jpg")
a.Presentations(1).Close()
a.Quit()
End Sub
——————————————
帮忙把代码转成VB也可以!
或者帮忙写下,谢谢哈!