Пример #1
0
        public static void OutputFile(DataTable datatable, string filename, HttpContext currentContext)
        {
            var excelBytes = ExcelUtils.CreateExcel(datatable);

            ExcelUtils.PushDataAsExcelOntoHttpResponse(excelBytes, filename, currentContext);
        }
Пример #2
0
        public static void OutputFile(DataTable dataTable, string filename, HttpContext ctx)
        {
            var excelBytes = ExcelUtils.CreateExcel(dataTable);

            ExcelUtils.OutputFile(excelBytes, filename, ctx);
        }