0

次のように、2 つのマージ領域を 1 行に追加しようとしています。

// Cell Range Address
CellRangeAddress cellRangeAddress_1 = new CellRangeAddress(0, 0, 3, 6);
CellRangeAddress cellRangeAddress_2 = new CellRangeAddress(0, 0, 7,9);

// Creating cells
cell = row.createCell(3); // 1
cell.setCellStyle(headingStyle);
cell.setCellValue("CoLUMN 1");

cell = row.createCell(4); // 2
cell.setCellStyle(headingStyle);
cell.setCellValue("COLUMN 2");

最初の列が結合され、「COLUMN 1」が表示されます。2 番目の列はマージされますが、テキストは表示されません。

私はそれを間違っていますか、それともバグですか?Apache POI 3.7 を使用しています。

4

1 に答える 1