开发者

Apache POI for Microsoft Word: columns

开发者 https://www.devze.com 2023-03-25 12:32 出处:网络
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().

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");
0

精彩评论

暂无评论...
验证码 换一张
取 消