
Untitled
By:
pavelEspitia on
May 7th, 2012 | syntax:
C# | size: 0.38 KB | hits: 21 | expires: Never
file = HttpContext.Current.Server.MapPath("~").ToString() + file;
string excelfile = file + ".xlsx";
using (SpreadsheetDocument excelDoc = SpreadsheetDocument.Create(excelfile, DocumentFormat.OpenXml.SpreadsheetDocumentType.Workbook))
{
CreateExcelParts(excelDoc, table);
}
return excelfile;