问题描述
- java excel导出样式 急急。。求大神帮忙
-
// 定义excel标题样式
public static WritableCellFormat ExcelTitleStyle() {
WritableFont wfTitle = new WritableFont(WritableFont.createFont("宋体"),
10, WritableFont.BOLD, false,
jxl.format.UnderlineStyle.NO_UNDERLINE, jxl.format.Colour.ORANGE);
WritableCellFormat wcfTitle = new WritableCellFormat(wfTitle);
try {
wcfTitle.setBorder(Border.ALL, BorderLineStyle.THIN, Colour.BLACK);
wcfTitle.setBackground(Colour.GRAY_25);
wcfTitle.setAlignment(Alignment.CENTRE);
wcfTitle.setVerticalAlignment(VerticalAlignment.CENTRE);
} catch (Exception e) {
}
return wcfTitle;
}
解决方案
没看出来 是要问什么?
时间: 2025-01-14 09:04:08