using Excel = Microsoft.Office.Interop.Excel; using System.Reflection; using System.Runtime.InteropServices; using Microsoft.Office.Core;
string path = Server.MapPath("MyTest.xls"); FileInfo fi1 = new FileInfo(path); if(fi1.Exists) fi1.Delete();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)