Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

自定义多行表头,变成多列 #4049

@cx282441

Description

@cx282441

异常代码

   // 将数据写入到输出流中 演示代码
        ExcelWriterBuilder writerBuilder = EasyExcel.write(rsp.getOutputStream())
            .head(data);
        writerBuilder.sheet("Sheet1").doWrite(ListUtil.empty());

异常提示

大家尽量把问题一次性描述清楚,然后贴上全部异常,这样方便把问题一次性解决掉。
至少大家要符合一个原则就是,能让其他人复现出这个问题,如果无法复现,肯定无法解决。

问题描述

使用 Version 4.0.3 自定义多行head 数据结构List<List>
image
导出的excel文件表头变成了竖行,如何解决
image

正常表头
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions