Skip to content

FreemarkerExcelBuilder

清沐 edited this page Oct 7, 2019 · 3 revisions
方法签名(Method) 描述(Desc)
ExcelBuilder template(String path) 设置html模板路径
ExcelBuilder workbookType(WorkbookType workbookType) 设定导出的excel的文件类型,如.xls
ExcelBuilder useDefaultStyle() 使用工具包定义的单元格样式,此时自定义的样式将无效
ExcelBuilder freezePanes(FreezePane... freezePanes) 窗口冻结,即哪些行、列被冻结,序号从1开始
ExcelBuilder widthStrategy(WidthStrategy widthStrategy) 设置列自动宽度策略,共三种:无自动列宽、自动列宽、计算自动列宽度,其中自动列宽效果好,但性能稍差,计算自动列宽与之相反,默认计算列宽
Workbook build() 开始构建Workbook
Clone this wiki locally