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

Reply

Join Date: May 2009
Posts: 3
Reputation: anil.dwivedi is an unknown quantity at this point 
Solved Threads: 0
anil.dwivedi anil.dwivedi is offline Offline
Newbie Poster

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

 
0
  #1
May 29th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 3
Reputation: anil.dwivedi is an unknown quantity at this point 
Solved Threads: 0
anil.dwivedi anil.dwivedi is offline Offline
Newbie Poster

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

 
0
  #2
May 30th, 2009
Originally Posted by anil.dwivedi View Post
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.

  1. try
  2. {
  3.  
  4. ProcessStartInfo psi = new ProcessStartInfo(MapPath("MaxMinTest.ppsm"));
  5. Process p = new Process();
  6. if (psi.FileName.Contains("pptx"))
  7. psi.Verb = "Show";
  8.  
  9. p.StartInfo = psi;
  10. p.Start();
  11. }
  12. catch (Exception ex)
  13. {
  14. Response.Write(ex.Message);
  15. }


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
Last edited by anil.dwivedi; May 30th, 2009 at 1:54 am. Reason: Added used name space information
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1260 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC