internal MemoryStream ExportExcelStreamFromDataTable(string keyword, string 客戶分類, string sortOrder, string sortColumn) { var data = this.All(keyword, 客戶分類, sortOrder, sortColumn); MemoryStream ms = new MemoryStream(); DataTable dt = ExcelUtil.ConvertObjectsToDataTable(data); ExcelUtil.ExportExcelFromDataTable(dt, ms); return(ms); }