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 303 views
1 answer 284 views
284 views asked Aug 10, 2018 by avibootz
1 answer 277 views
1 answer 285 views
285 views asked Aug 10, 2018 by avibootz
1 answer 322 views
322 views asked Aug 10, 2018 by avibootz
1 answer 280 views
1 answer 317 views
...