Thursday, 18 December 2008

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();

No comments:

Post a Comment