-
Notifications
You must be signed in to change notification settings - Fork 327
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
如何合并单元格 #415
Comments
参考的头条的实例 |
我在聚合导出文档 ExtendedInfo,List studentNames,又加了个@MultiColumn(classType = String.class),,然后用流导出,可以实现效果了,我把School改为Educational,主要是用流的autoMerge,而且要在start之前,用DefaultStreamExcelBuilder,不是DefaultExcelBuilder |
恐怕是这么回事,我最近也是有合并的需求,而且我那个还是map的,准备自己循环判断合并了, |
关联类里的字段都得是List才能合并,单字段的试过可以了。多字段的不清楚。你这个有示例代码吗 |
必须是List才能合并,因为需要根据list的长度提前设置合并长度 |
如果是map导出,可以使用DefaultStreamExcelBuilder+模板导出的方式,也可以比较快速实现你需要的效果 |
好的,感谢 |
感谢,我直接两个list导出了 |
对的,几个属性就用几个list就可以, |
Bug描述
描述Bug产生的现象(A clear and concise description of what the bug is.)
这些单元格如何合并?
Bug复现
按如下步骤复现(Steps to reproduce the behavior):
实体类定义
期望的结果
期望的结果是什么(A clear and concise description of what you expected to happen.)
合并后的效果
The text was updated successfully, but these errors were encountered: