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 206 views
1 answer 192 views
192 views asked Aug 10, 2018 by avibootz
1 answer 178 views
1 answer 201 views
201 views asked Aug 10, 2018 by avibootz
1 answer 226 views
226 views asked Aug 10, 2018 by avibootz
1 answer 197 views
1 answer 232 views
...