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 -

<a href="CD-12 Open Value Module EMEA and Latam BlackWhite.ppsm"> Open/Save </a>

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 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 -

<a href="CD-12 Open Value Module EMEA and Latam BlackWhite.ppsm"> Open/Save </a>

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

This article has been dead for over six months. Start a new discussion instead.