private void CreateExcel(IExcel excelApp, string filePath) { if (File.Exists(filePath)) { File.Delete(filePath); } excelApp.CreateExcel(filePath); // AddNewSheet(filePath); }