using (new Impersonator(user_name, domain, password)) { System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.UseShellExecute = false; proc.StartInfo.LoadUserProfile = false; proc.StartInfo.FileName = "C:\\Program Files\\Microsoft Office\\Office12\\WINWORD.exe"; proc.StartInfo.Arguments = path + filename try { proc.Start(); } catch (Exception e) { MessageBox.Show(e.ToString()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)