在C锐利Windows窗体中的PowerPoint [英] PowerPoint in C sharp windows Form

查看:115
本文介绍了在C锐利Windows窗体中的PowerPoint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Windows窗体中显示ppt文件,我已经添加了WebBrowser控件并能够显示,但是在按下按钮时要求打开,保存,取消,并且幻灯片仅显示到第二个幻灯片并停止.按下按钮后,它应会自动打开,并且幻灯片应按照ppt文件中的设置运行,直到结束并退出应用程序为止.

我目前使用的代码是

Hi, I need to show the ppt file inside windows form, I have added WebBrowser control and able to show, but on button press it is asking as open, save, cancel and the slideshow just goes to 2nd slideshow and stops. On button press it should open automatically and the slides should be running as set in the ppt file till the end and at end the application should exit.

the code which i am using at present is

private void btnShow_Click(object sender, EventArgs e)
{
this.webBrowser1.Navigate("Blank");
string path = "C:\\Test.ppt";
this.webBrowser1.Navigate(path);
}



请在相同的帮助上



Kindly help on the same please

推荐答案

您好,

我不知道如何将Microsoft.Office.Interop.PowerPoint命名空间与Webbrowser控件一起使用,但这
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint.applicationclass_members.aspx [ ^ ]
看起来是一个很好的起点.

问候,
比约恩(Bjoern)
Hi,

I don''t exaclty know how the Microsoft.Office.Interop.PowerPoint namespace is used with webbrowser control but this
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint.applicationclass_members.aspx[^]
looks like a good starting point.

Regards,
Bjoern


这篇关于在C锐利Windows窗体中的PowerPoint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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