954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to run the powerpoint presentation (.ppsm) file using C# in web based application

Hi all,

I want to run .ppsm file in slideshow window using c# in web based application without opening presentaion in powerpoint. I was given anchor link like following -

Open/Save

When I open html page in IE8 and click on "Open/Save" link it launch a open/Save dailog box and when click on Open button it open the .ppsm file in powerpoint application but not run the file in slideshow window.

So please help me How to run the .ppsm file using C# in web based application.


Please give me code example if this is possible in web based application using C#.


Thanks in Advance


Regards,

Anil Dwivedi

anil.dwivedi
Newbie Poster
3 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

Hi all,

I want to run .ppsm file in slideshow window using c# in web based application without opening presentaion in powerpoint. I was given anchor link like following -

Open/Save

When I open html page in IE8 and click on "Open/Save" link it launch a open/Save dailog box and when click on Open button it open the .ppsm file in powerpoint application but not run the file in slideshow window.

So please help me How to run the .ppsm file using C# in web based application.

Please give me code example if this is possible in web based application using C#.

Thanks in Advance

Regards,

Anil Dwivedi

Hi guys,

I have tried following code and it work when choose server option as "Use Visual Studio Development Server" in Web tab of Website Project's property and running with Visual Studio. But it doesn't work When I choose server option as "Use Local IIS Web server" in Web tab of Website Project's property and also it doesn't work when i deploy it on IIS web server & no any exception/error throws as well.

try
            {
                
                ProcessStartInfo psi = new ProcessStartInfo(MapPath("MaxMinTest.ppsm"));
                Process p = new Process();
                if (psi.FileName.Contains("pptx"))
                    psi.Verb = "Show";

                p.StartInfo = psi;
                p.Start();
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }


Here I have used [ using System.Diagnostics ] name space.

Please help me If you guys have any solution. It's very urgent

Thanks & Regards,

Anil Dwivedi

anil.dwivedi
Newbie Poster
3 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You