-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
建议:写Sheet的时候,增加参数判断是否需要合并head的cell #822
Labels
Comments
可以 这个以前有人提过 忘记了。建议目前 可以稍微加个字符区别。 |
可以指定坐标进行合并的 |
这两种方式都能通过增加参数实现,且不影响doWrite(data())的正常调用。 |
我喜欢这种的 EasyExcel.write(fileName, DemoData.class).sheet("模板").mergeHead(false).doWrite(data()); |
已经在 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本: 2.1.1
类: WriteContextImpl.java
方法: initHead(ExcelWriteHeadProperty excelWriteHeadProperty)
代码片段:
// Combined head addMergedRegionToCurrentSheet(excelWriteHeadProperty, newRowIndex);
当前实现,是强制合并相同内容的临近cell了,有些时候可能不需要合并。
建议增加参数判断是否需要开启合并head cell。
thx!
The text was updated successfully, but these errors were encountered: