Apache POI for Microsoft Word: columns
Does anybody know how to write text in two columns?
I tried XWPFRun.addBreak(BreakType.COLUMN),
but didn't work - the result was the 开发者_C百科same as XWPFRun.addBreak()
.
EDIT: here is the code
XWPFRun paragraphTenRunOne = paragraphTen.createRun();
paragraphTenRunOne.setText("this text must be in the first column");
paragraphTenRunOne.addBreak(BreakType.COLUMN);
paragraphTenRunOne.setText("this text must be in the second column");
精彩评论