使用C#显示投影片 [英] Using C# to display powerpoint

查看:237
本文介绍了使用C#显示投影片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有用C#编写的显示/控制一个PowerPoint幻灯片Windows应用程序没有什么好办法?最后,我想显示的形式缩略图,点击这些缩略图将推动第二台显示器上显示的幻灯片(类似于使用PowerPoint本身显示出第二个显示器上播放幻灯片)。

Is there any good way to use a windows application written in C# to display/control a powerpoint slideshow? Ultimately I would like to show thumbnails in a form and clicking these thumbnails would advance the slides shown on a second monitor (similar to using Powerpoint itself to show a slideshow on a second monitor).

我希望能够使用PowerPoint播放器如果没有安装PowerPoint。

I would like to be able to use Powerpoint Viewer if Powerpoint is not installed.

似乎存在某些ActiveX,控件,允许集成投影片的形式,但其中大部分似乎花费金钱,使用这些控件中的一个没有任何人有经验吗?

There seems to be some ActiveX-controls that allows integration of Powerpoint in a form, but most of these seem to cost money, does anyone have experience using one of these controls?

编辑:我知道有通过增加提及Microsoft.Office.InterOp.Powerpoint对象模型accessable,但我希望能够无需微软的Office为prerequisite发布最终方案,即就是为什么我提到PowerPoint播放器,因为它可以自由发布。

I know that there is an object model accessable by adding a reference to Microsoft.Office.InterOp.Powerpoint, but I want to be able to distribute the resulting program without having Microsoft Office as a prerequisite, that was why I mentioned Powerpoint Viewer because it can be distributed freely.

推荐答案

本KB勾画出了基本与PowerPoint演示presentation观众对象模型的工作。我建议你​​包括观众当您分发应用程序。

This kb lays out the basics for working with the powerpoint presentation viewer object model. I'd suggest you include the viewer when you distribute your application.

http://support.microsoft.com/kb/265385

一旦你得到一个参照观众(顶层)对象是基本相同的简报工作。presentation对象模型,但较少的功能(如编辑等)

Once you get a reference to the viewer (top level) object it is basically the same as working with the powerpoint.presentation object model, but with less functionality (i.e. editing, etc)

如果您使用的是2007年PowerPoint中,那么你可以通过使用system.xml和相关的命名空间与presentation文件作为一个开放的XML文件中工作添加编辑功能。

If you are working with Powerpoint 2007, then you can add editing functionality by using the System.XML and related namespaces to work with the presentation file as an open xml file.

对于有关UNO / openoffice.org的意见,我觉得这些错过了一点,因为你不能使用UNO与简报工作,它是OpenOffice的,而不是提问的原著的要求。

Regarding the comments about UNO/openoffice.org, I think these miss the point, as you cannot use UNO for working with powerpoint, it is for openoffice and that was not the origianl requirement of the questioner.

有第三方工具集阅读Aspose一样,但你的目标是与PowerPoint播放器组件(免费)工作,所以我猜你想避免支付的开发工具?无论哪种方式查看器组件OM非常适合用于显示和previewing和现有幻灯片。 (您将需要投影片的一个副本,以便您可以创作从头presentation,再加上Visual Studio中创建VSTO项目)。

there are 3rd party toolsets like aspose, but then your goal was to work with the powerpoint viewer component (free) so I'm guessing you want to avoid paying for dev tools? Either way viewer components OM is perfectly suitable for displaying and previewing and existing slide show. (you will need one copy of Powerpoint so that you can author the presentation from scratch, plus Visual Studio to create the VSTO project).

这篇关于使用C#显示投影片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆