示例#1
0
 public static byte[] ToExcel <T>(this IEnumerable <T> items, string sheetName = null)
 {
     return(ArrayToExcel.CreateExcel(items, scheme =>
     {
         scheme.SheetName = sheetName;
     }));
 }
示例#2
0
 public static byte[] ToExcel <T>(this IEnumerable <T> items, Action <ArrayToExcelScheme <T> > schemeBuilder)
 {
     return(ArrayToExcel.CreateExcel(items, schemeBuilder));
 }