Jx 模板添加意外列

问题描述

我需要有关从 jx 模板生成 excel 文件的帮助。 我正在使用这个版本的 jx 和 apache poi

        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi</artifactId>
            <version>3.17</version>
        </dependency>
        <dependency>
            <groupId>net.sf.jxls</groupId>
            <artifactId>jxls-core</artifactId>
            <version>1.0.6</version>
        </dependency>

当我遍历地图以填充标题和表格时,我得到了一些不必要的空列。

这是我的模板

enter image description here

在模板中,我使用了简单的 foreach。 对于标题: | ${头} | 对于列: | ${values.get(hed).get("JANUARY").km} |

这是结果:

enter image description here

如您所见,有很多空列。不需要从 S 到 AA 列,AB 列应该在 R 位置。

您对此有什么建议吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...