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

Parse XML to dynamic object in C#

C# Crop white space from around the image