C语言问题【高分200】

来源:百度知道 编辑:UC知道 时间:2024/05/17 03:49:35
提供下
把PPT里的图片提取在一个文件夹的源文件
把Microsoft Office PowerPoint 2003 就是把PPT 里面的幻灯片提取成JPG的图片然后放在当前新建的一个文件夹

VB怎么写?就是不能用手工的啊,我知道PPT可以保存为JPG格式的!

widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright widebright 请查看消息啊

我已经做好程序发到你邮箱了,给我分吧,哈哈哈

呵呵,看来分是我的啦,
写个vb.net ,在powerpoint 2003中测试通过。

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.Presentations.Open("C:\Documents and Settings\widebright\桌面\dddddd.ppt", Microsoft.Office.Core.MsoTriState.msoTrue)

'如下一句导出全部幻灯片到 新建文件夹
a.Presentations(1).Export("C:\Documents and Settings\widebright\桌面\新建文件夹", "jpg")

'导出 第 i 页幻灯片 到 指定文件
Dim i As Integer
i = 1
a.Presentations(1).Slides(i).Export("C:\Documents and Settings\widebright\桌面\新建文件夹\1.jpg", "jpg")
a.Presentations(1).Close()