I am using Apache POI to write data into Microsoft Excel.
I would like to break data into new line in some cell, how to do it?

How-to
You can add \n for the new line. For example,
1 | Issue issue1 = new Issue(1, "查不到資料", "新建立", "正常", "蜘蛛人(2016-05-26 17:05:00):\n這個提議不錯,來做吧!\n\n浩克(2016-05-26 17:05:00):\n測試無誤\n\n"); |

Reference
[1] https://stackoverflow.com/questions/14646349/how-to-add-new-line-character-in-the-cell-comment-using-apache-poi
No comments:
Post a Comment