[alibaba/easyexcel]easyexcel 能设置单元格内容居中和自动适应宽度吗

2024-06-24 62 views
9

public class TableStyle { private IndexedColors tableHeadBackGroundColor; private Font tableHeadFont; private Font tableContentFont; private IndexedColors tableContentBackGroundColor;

tablestyle 没有找到,特此请教

回答

6

你可以使用jxls(http://jxls.sourceforge.net/

它能做到不OOM吗?它有easyexcel操作方便简单吗,个人认为居中和自适应宽度经常使用,作者应该早就想到了, `@Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @Inherited public @interface ExcelProperty { String[] value() default {""};

int index() default 99999;

String format() default "";

} ` format是不是就可以设置

4

请问下单元格自适应的这个问题解决了吗?

0

@aionbo @lidenger #101