Skip to content

Opening powerpoint file through c sharp coding

Zeb Rehman

Asked Mar 11, 2012, 11:51 PM EDT1 answer
Share
LinkedInX
Hi friends.
I want to open a power point file just by clicking a button. I want to know how to code it. Please help. Thanks in advance.
regards
Zeb-ur-Rehman

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Senthilkumar
    0
    Hi,

    If you want to open any type of file or exe then you have to use the following code.

     Process proc = new Process();
            proc.StartInfo = new ProcessStartInfo(@"c:\sample.pptx");
            proc.Start();

    Before that you need to include "using System.Diagnostics" as namespace.

    If this post solve your question then mark it as "Accepted Answer".

    0