Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分栏导出,追加导出 #74

Closed
drj18 opened this issue Apr 6, 2020 · 3 comments
Closed

分栏导出,追加导出 #74

drj18 opened this issue Apr 6, 2020 · 3 comments
Labels
discussion 讨论 enhancement New feature or request
Milestone

Comments

@drj18
Copy link

drj18 commented Apr 6, 2020

需要导出分栏模板配置,一个表格分2栏导出,表格形式如下

序号 名称 序号 名称
1 名1 3 名称2
2 名称3 4 名称4
@xin-lai xin-lai added the enhancement New feature or request label Apr 7, 2020
@xin-lai
Copy link
Collaborator

xin-lai commented Apr 7, 2020

这个需求并不是很通用,欢迎PR。可以考虑结合Append方法实现。也就是Append既可追加Sheet,也可以追加到当前Sheet。
exporter.Append(list1).Separate(1).Append(list2).ExportAppendData(filePath);

@xin-lai
Copy link
Collaborator

xin-lai commented Apr 7, 2020

后续可以支持以下方式:

exporter.Append(list1).SeparateByColumn().Append(list2).ExportAppendData(filePath);
exporter.Append(list1).SeparateBySheet().Append(list2).ExportAppendData(filePath);

@xin-lai xin-lai added the discussion 讨论 label Apr 7, 2020
@xin-lai xin-lai changed the title 导出分栏 分栏导出,追加导出 Apr 13, 2020
@xin-lai
Copy link
Collaborator

xin-lai commented Apr 13, 2020

#60

exporter.Append(list1).SeparateByColumn().Append(list2).ExportAppendData(filePath);
exporter.Append(list1).SeparateBySheet().Append(list2).ExportAppendData(filePath);
exporter.Append(list1).SeparateByRow().AppendHeaders().Append(list2).ExportAppendData(filePath);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion 讨论 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants