1、错误描述
Exception in thread "main" java.lang.IllegalArgumentException: The 'to' row (0) must not be less than the 'from' row (1)
at org.apache.poi.hssf.model.InternalSheet.addMergedRegion(InternalSheet.java:513)
at org.apache.poi.hssf.usermodel.HSSFSheet.addMergedRegion(HSSFSheet.java:680)
at com.you.excel.ThreeHead.main(ThreeHead.java:130)
2、错误原因
Region region1 = new Region(0, (short)0, 2, (short)0);
Region region2 = new Region(0, (short)1, 0, (short)6);
Region region3 = new Region(0, (short)7, 0, (short)12);
Region region4 = new Region(0, (short)13, 0, (s