using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Eson.Utils.ExcelHelper { /// /// Excel导出帮助类 /// public class ExcelHelper { private static ExcelHelper _instance; /// /// 实例化导出Excel帮助类 /// /// public static ExcelHelper GetInstance() { if (_instance == null) _instance = new ExcelHelper(); return _instance; } /// /// 调用Excel模板形式导出Excel(在需要特殊样式时可使用自己设置好样式的模板导出Excel,通常情况下建议使用内存流形式导出) /// /// public ExcelFileExport ExportWithFile() { return new ExcelFileExport(); } /// /// 调用内存流形式导出Excel /// /// public ExcelStreamExport ExportWithStream() { return new ExcelStreamExport(); } } }