Beispiel #1
0
        /// <summary>
        /// Export object to excel bytes
        /// </summary>
        /// <typeparam name="TModel"></typeparam>
        /// <param name="data"></param>
        public static byte[] ObjectToExcelBytes <TModel>(IEnumerable <TModel> data) where TModel : class, new()
        {
            var importer = new ExcelExporter();

            return(importer.ObjectToExcelBytes(data));
        }