Magicodes.IE icon indicating copy to clipboard operation
Magicodes.IE copied to clipboard

数据源是DataTable,如何导出带有一个大标题的excel

Open ylwlf888 opened this issue 4 years ago • 1 comments

string DocTitle="学生表" IExcelExporter exporter = new ExcelExporter(); var result = await exporter.Export(filepath, dataTable); 请问如何导出带有“学生表”主标题的Excel?

ylwlf888 avatar Jan 20 '22 14:01 ylwlf888

对于这种情况,是否可通过EPPlus API进行操作?也许对于目前来说这是一种解决方案。 利用API可以提供给您最大化的定制需求。

var list2 = GenFu.GenFu.ListOf<ExportTestDataWithAttrs>(30);
using (var pck = new ExcelPackage(new FileInfo(filePath)))
{
                  
}

hueifeng avatar Jan 23 '22 14:01 hueifeng