-1

我需要在单元格注释中添加多行。如何使用 apache POI 打破单元格注释中的行

前任:

Comment = "This is comment 1";
comment = comment + "This is comment2";
comment = comment + "This is comment3";
cell.setCellComment(comment);
4

1 回答 1

5

您可以使用 \n 换行。

Comment = "This is comment 1";
comment = comment + "\n This is comment2";
comment = comment + "\n This is comment3";
cell.setCellComment(comment);
于 2013-02-01T12:41:31.813 回答