Exemplo n.º 1
0
        private FileStreamResult createFileStreamResult(DataTable dt, string tofilename)
        {
            var          toexcel = new ToExcelWithOfficeOpenXml();
            MemoryStream stream  = toexcel.convertToExcel(dt);

            return(createFileStreamForExcel(stream, tofilename));
        }
Exemplo n.º 2
0
        private FileStreamResult createFileStreamResult <T>(List <T> lists, string tofilename)
        {
            var          toexcel = new ToExcelWithOfficeOpenXml();
            MemoryStream stream  = toexcel.convertToExcel <T>(lists.ToList());

            return(createFileStreamForExcel(stream, tofilename));
        }