Open Excel from C# as an idependent process

System.Diagnostics.Process excel = new System.Diagnostics.Process();

excel.StartInfo.FileName = "excel.exe";
//Open as readonly
excel.StartInfo.Arguments = string.Format("/r \"{0}\"",@"c:\temp\test.xls");
excel.Start();

Comments

Popular posts from this blog

Tibco Rendezvous (tibrv) C# .Net example

Parse XML to dynamic object in C#