apache poi powerpoint make nested table

时间:2017-02-06 01:33:14

标签: apache-poi

我想在表格单元格中很好地格式化我的文本。我在想一个表,是否有可能做嵌套表?或在表格单元格中添加文本框?

XMLSlideShow ppt = new XMLSlideShow();
XSLFSlide slide = ppt.createSlide()
XSLFTable table = slide.createTable();
XSLFTableRow tr = table.addRow();

for (int i = 0; i < columns; i++) {
    XSLFTableCell cell = tr.addCell();
    ///cell.insert(innertable)
    or
    ///cell.insertextbox(textbox)

类似的东西:

----------------------------------------
column1 | column 2            | column 3
----------------------------------------
AAAA    | ProductName         |
        | ------------------- |
        | | id | description| |
        | |    |            | |
        | ------------------- |

0 个答案:

没有答案