How to open Microsoft Word with specific Word document in C#

1 Answer

0 votes
using System.Diagnostics;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            ProcessStartInfo psi = new ProcessStartInfo();

            psi.FileName = "WINWORD.EXE";
            psi.Arguments = "d:\\file.doc";

            Process.Start(psi);
        }
    }
}


/*
run:

 
*/

 



answered Aug 10, 2018 by avibootz

Related questions

1 answer 196 views
1 answer 178 views
178 views asked Aug 10, 2018 by avibootz
1 answer 160 views
1 answer 189 views
189 views asked Aug 10, 2018 by avibootz
1 answer 212 views
212 views asked Aug 10, 2018 by avibootz
1 answer 182 views
1 answer 216 views
...