
java如何导出的excel文件居中
4个回答
展开全部
Label label=new Label(column,row,labelValue); WritableCellFormat cellFormat=new WritableCellFormat(); cellFormat.setAlignment(jxl.format.Alignment.LEFT); cellFormat.setVerticalAlignment(jxl.format.VerticalAlignment.CENTRE); cellFormat.setWrap(true); label.setCellFormat(cellFormat); sheetWrite.addCell(label);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
导出excel有好多种,不知道你用的哪一种,poi也可以导出,可以从网上查一下poi。能设置样式的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
WritableSheet sheet=book.createSheet("第一页",0);
cellFormat1.setAlignment(jxl.format.Alignment.CENTRE);
cellFormat1.setAlignment(jxl.format.Alignment.CENTRE);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
WritableCellFormat cf=new WritableCellFormat();
cf.setAlignment(jxl.format.Alignment.CENTRE); cf.setVerticalAlignment(jxl.format.VerticalAlignment.CENTRE);
cf.setAlignment(jxl.format.Alignment.CENTRE); cf.setVerticalAlignment(jxl.format.VerticalAlignment.CENTRE);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询