Microsoft.Office.Interop.Excel.Application excelApplication = new Microsoft.Office.Interop.Excel.Application(); Microsoft.Office.Interop.Excel.Workbook excelWorkBook = excelApplication.Workbooks.Add(); //Microsoft.Office.Interop.Excel.Worksheet wkSheetData = excelWorkBook.ActiveSheet; string workbookPath = System.IO.Directory.GetCurrentDirectory() + "\\Excl.xlsx"; excelWorkBook.SaveAs(workbookPath);
string path = System.Web.Hosting.HostingEnvironment.MapPath("~/bin/debug"); string workbookPath = System.IO.Path.Combine(path, "Excl.xlsx");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)