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

能否提供 以模板分页形式导出Excel?

Open RuiyanLiu opened this issue 4 years ago • 5 comments

每个模板(包含表头,表尾)就是excel中的打印的一页(默认每页10条数据),然后导出一个Excel。

RuiyanLiu avatar Jun 15 '20 03:06 RuiyanLiu

@RuiyanLiu You can check out the data split feature. https://github.com/dotnetcore/Magicodes.IE/blob/master/src/Magicodes.ExporterAndImporter.Tests/ExcelExporter_Tests.cs#L180-L233

hueifeng avatar Jun 15 '20 03:06 hueifeng

image 需要按模板这种形式的导出,跟你刚提供的这种方式有些不一样,就想问下这种方式能支持下吗

RuiyanLiu avatar Jun 15 '20 03:06 RuiyanLiu

@RuiyanLiu At present, there is no support for template multiple Sheet splitting. currently only supported #74

hueifeng avatar Jun 15 '20 03:06 hueifeng

蒽,好吧,那我再想下别的办法吧,当前项目需要这个。。。。

RuiyanLiu avatar Jun 15 '20 03:06 RuiyanLiu

@hueifeng #74 的导出分割API,我觉得我们可以开放更多API对象,以便支持更多用户的场景,比如:

SeparateByRow(o=> 
//TODO:自定义单元格处理逻辑
return rowEndIndex;
)

xin-lai avatar Jul 12 '20 05:07 xin-lai