PPT幻灯片将图像 [英] PPT slides to images
本文介绍了PPT幻灯片将图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Office 07 PIA到ppt成图像转换成C#。
I am using Office 07 PIA to convert the ppt into images in C#.
幻灯片正确转换成图像。
The slides are properly converted into images.
现在,虽然个别幻灯片转换成图像,我希望的一种变通方法也可以转换的幻灯片中动画了。我想在我的自定义应用程序,而不是在MS PowerPoint中播放这些PPT [转换为图像。
Now, while individual slides are converted into images, I was hoping for a workaround that could also convert the animations within slides too. I want to play these ppt [converted to images] in my custom application and not in MS PowerPoint.
我真的AP preciate任何帮助!
I would really appreciate any help!
感谢
推荐答案
这是pretty简单:
It's pretty simple:
Office 2002中
using Microsoft.Office.Core;
using PowerPoint;
ApplicationClass pptApplication = new ApplicationClass();
Presentation pptPresentation = pptApplication.Presentations.Open("myfile.ppt", MsoTriState.msoFalse,
MsoTriState.msoFalse, MsoTriState.msoFalse);
pptPresentation.Slides.Item(1).Export("slide.jpg", "jpg", 320, 240);
的Office 2003
using Microsoft.Office.Core;
using Microsoft.Office.Interop.PowerPoint;
ApplicationClass pptApplication = new ApplicationClass();
Presentation pptPresentation = pptApplication.Presentations.Open("myfile.ppt", MsoTriState.msoFalse,
MsoTriState.msoFalse, MsoTriState.msoFalse);
pptPresentation.Slides.Item[1].Export("slide.jpg", "jpg", 320, 240);
图像输出质量
pptPresentation.Slides.Item[1].Export("slide.png", "PNG", 1024, 768);
这篇关于PPT幻灯片将图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文