Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

C#
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
Posted
Updated 18-Feb-12 1:54am

1 solution

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
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900