1
여기 샘플 코드는 "\의 t"입니다이의 setText 방법 작동하지?XWPFRun.setText()가 줄 바꿈이나 탭을 존중하지 않는 것 같습니까?
XWPFDocument document = new XWPFDocument();
XWPFParagraph tp = document.createParagraph();
XWPFRun tRun = tp.createRun();
tRun.setText("a");
tRun.setText("\t"); // not work
tRun.setText("b");
FileOutputStream outStream = null;
try {
outStream = new FileOutputStream("testTabWithPOI.doc");
document.write(outStream);
outStream.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}