java 导入EXCEL表格 单元格合并的情况怎么处理,数据放在哪里?
展开全部
HSSFWorkbook
wb
=
new
HSSFWorkbook(fis);
HSSFSheet
sheet
=
wb.getSheetAt(0);
HSSFRow
row
=
sheet.getRow(1);
HSSFRow
rowm
=
sheet.getRow(83);//取第84行,读出C84备注,合并单元数据,再写入备注
rowm.setHeight((short)1000);
//合并单元数据
sheet.addMergedRegion(new
Region((short)83
,
(short)
2,
(short)83,
(short)16));
wb
=
new
HSSFWorkbook(fis);
HSSFSheet
sheet
=
wb.getSheetAt(0);
HSSFRow
row
=
sheet.getRow(1);
HSSFRow
rowm
=
sheet.getRow(83);//取第84行,读出C84备注,合并单元数据,再写入备注
rowm.setHeight((short)1000);
//合并单元数据
sheet.addMergedRegion(new
Region((short)83
,
(short)
2,
(short)83,
(short)16));
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询