theWorkbook.SaveCopyAs(fileName); theWorkbook.Close(false, fileName, true); byte[] data = ExportImportUtil.StreamFile(fileName); File.Delete(fileName); return data; response.ContentType = "application/xls"; response.OutputStream.Write(fileContent, 0, fileContent.Length); response.AddHeader("content-disposition", "attachment;filename=" + fileName);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)