Saturday 4 April 2015

ASP.NET - How to open Excel file (or any other file)

Watch on YouTube:

using System.Diagnostics;

   ProcessStartInfo sInf = new ProcessStartInfo();
   sInf.FileName = "EXCEL.EXE";
   sInf.Arguments = @"C:\Temp\ExcelTest\testexcel.xlsx";
   Process.Start(sInf);

No comments:

Post a Comment